1、从数组中删除某一个指定的元素 Array.prototype.remove = function (val) { let index = this.indexOf(val); if (index > -1) { this.splice(index, 1); } }; 2、去除数组中的空值 Array.prototype.bouncer = function () { return this.filter(item => {/* fliter 返回结果是true的*/ return item; }); } let arr = [1, null, 2, 3, undefine...