ArraySet#ArraySet

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 Array.indexOf, and the ownership of the array should be relinquished to the ArraySet.

Source code: utils/ArraySet.js (Line 19)
doc_phaser
2017-02-14 10:36:11
Comments
Leave a Comment

Please login to continue.