nx.data.Collection Class
Constructor
Item Index
Methods
Methods
add
(
-
item
Add an item.
Parameters:
-
item
Object
Returns:
added item. Null if fail to add, e.g. duplicated add into unique collection.
addRange
(
-
iter
Add multiple items. Will avoid duplicated items for unique collection.
Parameters:
-
iter
Object
Returns:
array of added items.
clear
()
Returns:
:
indexOf
(
-
item
Get the first index the given item appears in the collection, -1 if not found.
Parameters:
-
item
Object
Returns:
: