Skip to main content

some

method Float16Array.some
Jump to headingFloat16Array.some(
predicate: (
value: number,
index: number,
array: Float16Array,
) => unknown
,
thisArg?: any,
): boolean

Determines whether the specified callback function returns true for any element of an array.

Parameters Jump to heading

Jump to headingpredicate: (
value: number,
index: number,
array: Float16Array,
) => unknown

A function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.

optional
Jump to headingthisArg: any

An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

Return Type Jump to heading

boolean
Back to top