js/core/file.js
// Check if a item is already in a array
Check if a item is already in a array
Check if a item is already in a array
function isItemInArray(array, item) {
    for (var i = 0; i < array.length; i++) {
        if (array[i] === item) {
            return true;
        }
    }
    return false;
  }
function isItemInArray ( array , item ) { for ( var i = 0 ; i < array . length ; i ++ ) { if ( array [ i ] === item ) { return true ; } } return false ; }
Check if a item is already in a array
Check if a item is already in a array