Current File : /home/tradevaly/www/node_modules/collect.js/src/methods/forget.js
'use strict';

module.exports = function forget(key) {
  if (Array.isArray(this.items)) {
    this.items.splice(key, 1);
  } else {
    delete this.items[key];
  }

  return this;
};