2021年12月1日

手写数组API

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

posted @ 2021-12-01 15:26 要慢慢来 阅读(21) 评论(0) 推荐(0) 编辑

导航