Int8Array.prototype.keys

Returns an iterable of keys (indices) in the typed array.

Syntax

keys()

Return value

An iterable of keys.

Example

[...new Int8Array([1, 2, 3])]
[1, 2, 3]