牛客544645134号
牛客544645134号
题解
题解 | #使用闭包#
全部文章
题解
归档
标签
去牛客网
登录
/
注册
题解 | #使用闭包#
429 浏览
0 回复
2021-08-11
牛客544645134号
+关注
使用闭包
http://www.nowcoder.com/practice/578026cd24e3446bbf27fe565473dc26
function makeClosures(arr, fn) {
return arr.map((item,index)=>{
return ()=>fn(arr[index])
})
}
举报
收藏
赞
评论加载中...