Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 367 Bytes

File metadata and controls

21 lines (13 loc) · 367 Bytes

ArrayType

Type class for fixed length typed arrays. Takes another Type as input and produces an array type for it.

Usage:

const {ArrayType, T} = realm;
const NumberArray = new ArrayType(T.Float64);

const numbers = new NumberArray(3);

numbers[0] === 0;
numbers[1] === 0;
numbers[2] === 0;

numbers[1] = 123;

numbers.forEach(num => console.log(num));