Ember.SubArray Class
An Ember.SubArray
tracks an array in a way similar to, but more specialized
than, Ember.TrackedArray
. It is useful for keeping track of the indexes of
items within a filtered array.
Item Index
Methods
Methods
addItem
(
Number
-
index
-
match
Track that an item was added to the tracked array.
Parameters:
-
index
NumberThe index of the item in the tracked array.
-
match
Booleantrue
iff the item is included in the subarray.
Returns:
Number:
The index of the item in the subarray.
removeItem
(
Number
-
index
Track that an item was removed from the tracked array.
Parameters:
-
index
NumberThe index of the item in the tracked array.
Returns:
Number:
The index of the item in the subarray, or -1
if the item
was not in the subarray.