code: function (objects) {
        if (objects.length === 0) {
          return this.clear();
        }
  
        var len = _emberMetalProperty_get.get(this, 'length');
        this.replace(0, len, objects);
        return this;
      }
docs: Replace all the receiver's content with content of the argument.
  If argument is an empty array receiver will be cleared.
  ```javascript
  var colors = ['red', 'green', 'blue'];
  colors.setObjects(['black', 'white']);  // ['black', 'white']
  colors.setObjects([]);                  // []
  ```
  @method setObjects
  @param {Ember.Array} objects array whose content will be used for replacing
  the content of the receiver
  @return {Ember.Array} receiver with the new content
  @public