functional programing like the big wave that effect our coding habit,like forEach.
Despite For in javascript is pretty convenient and util. I want the whole loop look like functional so I set the array to stead for let index = 0...:
pure javscript
for(let index = 0;index < 10;index++){
   //count 10 times.
}
functional Solution
Array(10).forEach((value,index,arr)=>{
  //count 10 times. 
})
When array is made that empty items in self, So I use fill to solve this problem, the fill made functional complex.
Is any way to make item in Array or instead for cleary? 
 
    