摘要:
Function.prototype.bind = Function.prototype.bind || function (context, ...args1) { var _this = this return function(...args2) { return _this.call(con 阅读全文
摘要:
fliter()方法返回的数组元素是调用的数组的一个子集。传递的函数是用来逻辑判定的,该函数返回true或false。调用判定函数就像调用forEach()和map()一样。 如果返回值为true或能转化为true的值,那么传递给判定函数的元素就是这个子集的成员,它将被添加到一个作为返回值的数组中。 阅读全文