SOURCE

Array.prototype._map = function(Fn) {
    if(typeof Fn !== 'function') return
    let newArr = [];
    for(let i=0;i<this.length;i++){
        newArr[i] = Fn(this[i])
    }
    return newArr
}
console 命令行工具 X clear

                    
>
console