unshiftObjects (objects) Ember.Array
public
Adds the named objects to the beginning of the array. Defers notifying observers until all objects have been added.
let colors = ['red']; colors.unshiftObjects(['black', 'white']); // ['black', 'white', 'red'] colors.unshiftObjects('yellow'); // Type Error: 'undefined' is not a function
Parameters:
-
objects
Ember.Enumerable
- the objects to add
Returns:
-
Ember.Array
- receiver
Please login to continue.