The constructor takes any iterable (such as Arrays or Sets) and creates a List. You can also not pass anything and add things later:
const list = new List(["lorem", "ipsum", "dolor"]);
const list = new List();
list.push("lorem");
- Array vs List
- Usage with TypeScript
- Static Methods
- List Properties
- List Methods
- Support for asynchronous callback functions
- New Methods:
findNode
values
(similar to entries)
- constructor that takes any iterable (replaces
List.fromArray
)