array.some()
This function calls a given closure/function with every element in a given array and returns true, if one of the closure calls returns true.
array.some( closure=function, parallel=boolean, maxThreads=number )
Returns: Boolean
Examples
newArray = ['a','b','c','b','d','b','e','f'];
writedump(newArray);
testOne = newArray.some(function(item,idx,arr){
return item == 'c';
});
writedump(testOne);
testTwo = newArray.some(function(item,idx,arr){
return item == 'k';
});
writedump(testTwo);