code: function (i) {
          var oldVal = this.array[i];
          this.array.splice(i, 1);
          this.set('length', this.array.length);
          events.trigger(this, 'remove_at', i, oldVal);
  
          return oldVal;
      }
docs: Remove item from the array and return it
  
  @param {Integer} i Index to remove
  @returns {*} Value that was removed