lib/util.js
function findPathIndexInArray(array, path) {
  for(var i = 0; i < array.length; i++) {
    if(array[i].path === path) {
      return i;
    }
  }

  return -1;
}
function findPathIndexInArray(array, path) {
  for(var i = 0; i < array.length; i++) {
    if(array[i].path === path) {
      return i;
    }
  }

  return -1;
}
function findPathIndexInArray ( array , path ) { for ( var i = 0 ; i < array . length ; i ++ ) { if ( array [ i ] . path === path ) { return i ; } } return - 1 ; }
General utility methods
General utility methods