手写数组API
摘要:1. 数组filter方法,参数传入一个函数,不改变数组本身,不对空数组操作,返回一个新数组。 Array.prototype.filterTest = function (callback) { if (typeof callback != 'function') { throw Error(`$
阅读全文
posted @ 2021-12-01 15:26
posted @ 2021-12-01 15:26