Foreach creates a range from start point to end point inclusive
npm install babel-plugin-range-operators --dev
'[0...10]'.forEach((index) => {
console.log(index)
})
[0,1,2,3,4,5,6,7,8,9,10].forEach((index) => {
console.log(index)
})
{
"plugins": ["range-operators"]
}