2021年8月18日

map() reduce() filter() 与 forEach()

摘要: ###1. map() 遍历元素 不改变原数组arr 返回值为数组 let brr = []; let arr = [1, 2, 3] brr = arr.map(function (item, index, array) { return 2 * item; }); console.log(brr 阅读全文

posted @ 2021-08-18 23:39 In-6026 阅读(42) 评论(0) 推荐(0)

导航