array.some
tests whether some element in the array passes the test implemented by the provided function
api
const some = require('array.some')
some(array, callback)
- array the array to be processed by the provided function
- callback function to test for each element, taking 3 arguments:
- currentValue the current element being processed in the array
- index the index of the current element being processed in the array
- array the array some() was called upon
example
const some = // true { return ele > 5}