removeObject (obj) Ember.Arraypublic
Inherited from Ember.MutableEnumerable but overwritten in packages/ember-runtime/lib/mixins/mutable_array.js:351
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