/ Published in: JavaScript
Remove the item from the array changing the length of the array.
Expand |
Embed | Plain Text
Array.prototype.remove = function(e) { var t, _ref; if ((t = this.indexOf(e)) > -1) { return ([].splice.apply(this, [t, t - t + 1].concat(_ref = [])), _ref); } };
You need to login to post a comment.
