lib.js 176 B

123456789101112
  1. let lib = {
  2. }
  3. module.exports = lib;
  4. Array.prototype.remove = function(val) {
  5. let index = this.indexOf(val);
  6. if (index > -1) {
  7. this.splice(index, 1);
  8. }
  9. };