new ArraySet(list)
ArraySet is a Set data structure (items must be unique within the set) that also maintains order.
This allows specific items to be easily added or removed from the Set.
Item equality (and uniqueness) is determined by the behavior of Array.indexOf
.
This used primarily by the Input subsystem.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
list | Array.<any> | <optional> | (new array) | The backing array: if specified the items in the list must be unique, per |
- Source code: utils/ArraySet.js (Line 19)
Please login to continue.