js/core/file.js
// Check what the index is of a item in a array
Check what the index is of a item in a array
Check what the index is of a item in a array
function findItemInArray(array, item) {
    for (var index = 0; index < array.length; index++) {
      if (array[index] === item) {
        return index;
      }
    }
    return false;
  }
function findItemInArray ( array , item ) { for ( var index = 0 ; index < array . length ; index ++ ) { if ( array [ index ] === item ) { return index ; } } return false ; }
Check what the index is of a item in a array
Check what the index is of a item in a array