code: function(value) {
        var i;
        for (i = value; i < this._length; i++) {
          delete this[i];
        }
        this._length = value;
      }
docs: This deletes indices if the new length is less then the current
  length. If the new length is more, it does nothing, the new indices
  will be undefined until set.