Constructor
Ordered, indexed, dense collections, like JavaScript Arrays.
Parameters:
Name | Type | Description |
---|---|---|
values |
Array | A plain Javascript array from which the list can be generated. |
Examples
const list = PSPDFKit.Immutable.List([1, 2]);
list = list.push(3); // => Immutable.List[1, 2, 3]
list = list.delete(0); // => Immutable.List[2, 3]
list = list.map(v => v * 2); // => Immutable.List[4, 6]
list = list.reverse(); // => Immutable.List[6, 4]