Uint8Array.prototype.length

Gets the length of the typed array.

Syntax

length

Example

new Uint8Array([0, 1, 2]).length
3