removeObject (obj) Ember.Array
public
Remove all occurrences of an object in the array.
let cities = ['Chicago', 'Berlin', 'Lima', 'Chicago']; cities.removeObject('Chicago'); // ['Berlin', 'Lima'] cities.removeObject('Lima'); // ['Berlin'] cities.removeObject('Tokyo') // ['Berlin']
Parameters:
-
obj
*
- object to remove
Returns:
-
Ember.Array
- receiver
Please login to continue.