let myArray = [1,2,3, 4,5,6]
Array.prototype.runFulfil = run = (func, i = 0) => {
if(i == myArray.length) return
return func(myArray[i] , i) , run(func, i += 1)
}
myArray.runFulfil( (content, index) => console.log(`arr[${index}] => ${content}`))
let myArray = [1,2,3, 4,5,6];
myArray.map((content, index)=>{console.log(`arr[${index}] => ${content}`)});