dist/@ajsf/core/bundles/ajsf-core.umd.js
/**
     * 'inArray' function
     *
     * Searches an array for an item, or one of a list of items, and returns true
     * as soon as a match is found, or false if no match.
     *
     * If the optional third parameter allIn is set to TRUE, and the item to find
     * is an array, then the function returns true only if all elements from item
     * are found in the array list, and false if any element is not found. If the
     * item to find is not an array, setting allIn to TRUE has no effect.
     *
     * //  { any|any[] } item - the item to search for
     * //   array - the array to search
     * //  { boolean = false } allIn - if TRUE, all items must be in array
     * // { boolean } - true if item(s) in array, false otherwise
     */
'inArray' function
Searches an array for an item, or one of a list of items, and returns true
as soon as a match is found, or false if no match.

If the optional third parameter allIn is set to TRUE, and the item to find
is an array, then the function returns true only if all elements from item
are found in the array list, and false if any element is not found. If the
item to find is not an array, setting allIn to TRUE has no effect.

{ any|any[] } item - the item to search for
array - the array to search
{ boolean = false } allIn - if TRUE, all items must be in array
{ boolean } - true if item(s) in array, false otherwise
' inArray ' function Searches an array for an item or one of a list of items and returns true as soon as a match is found or false if no match . If the optional third parameter allIn is set to TRUE and the item to find is an array then the function returns true only if all elements from item are found in the array list and false if any element is not found . If the item to find is not an array setting allIn to TRUE has no effect . { any|any [] } item - the item to search for array - the array to search { boolean = false } allIn - if TRUE all items must be in array { boolean } - true if item ( s ) in array false otherwise
function inArray(item, array, allIn) {
        if (allIn === void 0) { allIn = false; }
        if (!isDefined(item) || !isArray(array)) {
            return false;
        }
        return isArray(item) ?
            item[allIn ? 'every' : 'some'](function (subItem) { return array.includes(subItem); }) :
            array.includes(item);
    }
function inArray ( item , array , allIn ) { if ( allIn === void 0 ) { allIn = false ; } if ( ! isDefined ( item ) || ! isArray ( array ) ) { return false ; } return isArray ( item ) ? item [ allIn ? 'every' : 'some' ] ( function ( subItem ) { return array . includes ( subItem ) ; } ) : array . includes ( item ) ; }
'inArray' function
 Searches an array for an item, or one of a list of items, and returns true
 as soon as a match is found, or false if no match.
' inArray ' function Searches an array for an item or one of a list of items and returns true as soon as a match is found or false if no match .