1.0.4 • Published 7 years ago

babel-plugin-range-operators v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Babel Plugin Range Operators

Foreach creates a range from start point to end point inclusive

Installation

npm install babel-plugin-range-operators --dev

Input

'[0...10]'.forEach((index) => {
  console.log(index)
})

Output

[0,1,2,3,4,5,6,7,8,9,10].forEach((index) => {
  console.log(index)
})

Uses

{
  "plugins": ["range-operators"]
}
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago