Sets a value or an array of values.
set(array, offset?)
array
A typed or untyped array of values to set.
offset optional
The index in the current array at which the values are to be written.
let x = new Uint8ClampedArray(5)
x.set([1, 2, 3], 2)
x
Uint8ClampedArray [0, 0, 1, 2, 3]