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