MutableArray#pushObjects()

pushObjects (objects) Ember.Arraypublic

Defined in packages/ember-runtime/lib/mixins/mutable_array.js:185

Add the objects in the passed numerable to the end of the array. Defers notifying observers of the change until all objects are added.

let colors = ['red'];

colors.pushObjects(['yellow', 'orange']);  // ['red', 'yellow', 'orange']

Parameters:

objects Ember.Enumerable
the objects to add

Returns:

Ember.Array
receiver
doc_EmberJs
2016-11-30 16:52:35
Comments
Leave a Comment

Please login to continue.