.some(callback)
Description
Some is a method that returns a boolean of whether or not a value exists in an array
Parameters
Some takes a callback function as a parameter.
Usage On Arrays
arr = ["wow","hello","world"]
// setup the array
log arr.some(def(val) -> (
return val.toUpper().contains("O")
))
// returns true
// the callback function was applied to each valueLast updated
Was this helpful?