标签:red ons callback prot dex 模仿 map pre turn
Array.prototype.myMap = function(callback){
const self = this;
return self.reduce((prev,next,index)=>{
prev.push(callback(next,index,self))
return prev
},[])
}
标签:red ons callback prot dex 模仿 map pre turn
原文地址:https://www.cnblogs.com/wangyisu/p/13301293.html