Class Ember.MutableEnumerable

public
Uses: Ember.Enumerable
Defined in: packages/ember-runtime/lib/mixins/mutable_enumerable.js:12
Module: ember

addObject (object) Object public

Module: ember
object
Object
The object to add to the enumerable.
returns
Object
the passed object

Required. You must implement this method to apply this mixin.

Attempts to add the passed object to the receiver if the object is not already present in the collection. If the object is present, this method has no effect.

If the passed object is of a type not supported by the receiver, then this method should raise an exception.

addObjects (objects) Object public

Module: ember
objects
Ember.Enumerable
the objects to add.
returns
Object
receiver

Adds each object in the passed enumerable to the receiver.

removeObject (object) Object public

Module: ember
object
Object
The object to remove from the enumerable.
returns
Object
the passed object

Required. You must implement this method to apply this mixin.

Attempts to remove the passed object from the receiver collection if the object is present in the collection. If the object is not present, this method has no effect.

If the passed object is of a type not supported by the receiver, then this method should raise an exception.

removeObjects (objects) Object public

Module: ember
objects
Ember.Enumerable
the objects to remove
returns
Object
receiver

Removes each object in the passed enumerable from the receiver.

© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/2.18/classes/Ember.MutableEnumerable/methods