removeAt (start, len) Ember.Arraypublic
Remove an object at the specified index using the replace() primitive method. You can pass either a single index, or a start and a length.
If you pass a start and length that is beyond the length this method will throw an OUT_OF_RANGE_EXCEPTION.
let colors = ['red', 'green', 'blue', 'yellow', 'orange']; colors.removeAt(0); // ['green', 'blue', 'yellow', 'orange'] colors.removeAt(2, 2); // ['green', 'blue'] colors.removeAt(4, 2); // Error: Index out of range
Parameters:
-
start
Number - index, start of range
-
len
Number - length of passing range
Returns:
-
Ember.Array - receiver
Please login to continue.