setObjects (objects) Ember.Array
public
Replace all the receiver's content with content of the argument. If argument is an empty array receiver will be cleared.
let colors = ['red', 'green', 'blue']; colors.setObjects(['black', 'white']); // ['black', 'white'] colors.setObjects([]); // []
Parameters:
-
objects
Ember.Array
- array whose content will be used for replacing the content of the receiver
Returns:
-
Ember.Array
- receiver with the new content
Please login to continue.