题解 | #使用闭包#
使用闭包
http://www.nowcoder.com/practice/578026cd24e3446bbf27fe565473dc26
function makeClosures(arr, fn) { const result = [] for(var i = 0,len = arr.length;i< len;i++){ result[i] = (function(v){ return () => fn(v) })(arr[i]) } return result }