MutableArray#removeObject()

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
doc_EmberJs
2016-11-30 16:52:36
Comments
Leave a Comment

Please login to continue.