Javascript Uint32Array length

Introduction

The Javascript Uint32Array length property stores the element count of a typed array.

Uint32Array.length

The length property is a read only property.

The value is set when a Uint32Array is created and cannot be changed.

Using the length property

var buffer = new ArrayBuffer(8);

var uint8 = new Uint32Array(buffer);
console.log(uint8.length); // 8 (matches the length of the buffer)



PreviousNext

Related