Skip to main content

filter

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

Returns the elements of an array that meet the condition specified in a callback function.

Parameters Jump to heading

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

A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in 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

Back to top