replace (idx, amt, objects) public
Required. You must implement this method to apply this mixin.
This is one of the primitives you must implement to support Ember.Array
. You should replace amt objects started at idx with the objects in the passed array. You should also call this.enumerableContentDidChange()
Parameters:
-
idx
Number
- Starting index in the array to replace. If idx >= length, then append to the end of the array.
-
amt
Number
- Number of elements that should be removed from the array, starting at *idx*.
-
objects
Array
- An array of zero or more objects that should be inserted into the array at *idx*
Please login to continue.