Int16Array.prototype.forEach

Calls the given function for each element of an array.

Syntax

forEach(callback, thisArg?)

Parameters

Remarks

forEach is useful for performing side-effects with array elements. To transform each array element, consider map.

Examples

new Int16Array([23, 42, 108]).forEach(x => print(x))
23
42
108