Uint8ClampedArray.prototype.at

Returns the element at the given index. If the index is negative, counts back from the last element.

Syntax

at(index)

Parameters

Return value

A typed array element or undefined.

Example

[14, 42, 108].at(1)
42
[14, 42, 108].at(-1)
108