UNPKG

array-includes-polyfill

Version:

Exposing a richer set of Array features for JavaScript

16 lines (13 loc) 296 B
class Trash{ trash(obj){ if(typeof obj == 'object' && Object.keys(obj).length != 0){ if(this.lookup(obj)){ var index = this.lookup(obj, true)._$$index_; this.splice(index,1); return true; } return false; } } } module.exports = Trash;