Skip to content

For mapping array creates a range from start point to end point inclusive

License

Notifications You must be signed in to change notification settings

madeinfree/babel-plugin-range-operators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"]
}

About

For mapping array creates a range from start point to end point inclusive

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published