Returns true if at least one element in the array satisfies the provided testing function.
const source = [1, 2, 3];const fn = (value: number) => value > 2;some(fn)(source) // true Copy
const source = [1, 2, 3];const fn = (value: number) => value > 2;some(fn)(source) // true
Returns true if at least one element in the array satisfies the provided testing function.
Example