some()
accepts two arguments.
some()
runs the given function on every item and returns true
if the function returns true for any one item.
The function passed in receives three arguments.
var numbers = [1,2,3,4,5,4,3,2,1];
var someResult = numbers.some(function(item, index, array){
return (item > 2);
});
console.log(someResult); //true
some()
does not change the values contained in the array.
The code above generates the following result.