摘要: Array的reducer方法; //1:自定義reducer函數 Array.prototype.myReduce = function ( fn = (pre, curr, index, arr) => {}, initValue ) { let acc; for (let i = 0; i < 阅读全文
posted @ 2022-06-23 11:03 码农-编程小子 阅读(25) 评论(0) 推荐(0) 编辑