BigInt64Array.prototype.map

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

Syntax

map(callback, thisArg?)

Parameters

Return value

A new typed array with all elements transformed using the callback function.

Example

new BigInt64Array([1, 2, 3]).map(x => 2**x)
BigInt64Array [2, 4, 8]