Skip to main content

map

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

Calls a defined callback function on each element of an array, and returns an array that contains the results.

Parameters Jump to heading

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

A function that accepts up to three arguments. The map method calls the callbackfn 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 callbackfn function. If thisArg is omitted, undefined is used as the this value.

Return Type Jump to heading

Back to top