Calls a function on each element of a typed array, and returns a typed array that contains the results.
map(callback, thisArg?)
callback function(value, index, array)
A function that accepts up to three arguments. The map method calls the function one time for each element in the array.
thisArg optional
An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
A new typed array with all elements transformed using the callback function.
new Uint8ClampedArray([1, 2, 3]).map(x => 2**x)
Uint8ClampedArray [2, 4, 8]