@putout/plugin-convert-for-to-for-of
🐊Putout plugin adds ability to convert for to for-of
Last updated 4 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-convert-for-to-for-of 
SYNC missed versions from official npm registry.

@putout/plugin-convert-for-to-for-of NPM version

The for statement creates a loop that consists of three optional expressions, enclosed in parentheses and separated by semicolons, followed by a statement to be executed in the loop.

The for...of statement creates a loop which invokes a custom iteration hook with statements to be executed for the value of each element of an array.

(c) MDN

🐊Putout plugin adds ability to convert for to for...of loop. Merged to @putout/plugin-for-of.

Install

npm i @putout/plugin-convert-for-to-for-of -D

Rule

{
    "rules": {
        "convert-for-to-for-of/n": "on",
        "convert-for-to-for-of/length": "on",
        "convert-for-to-for-of/entries": "on"
    }
}

License

MIT

Current Tags

  • 4.0.2                                ...           latest (4 years ago)

16 Versions

  • 4.0.2                                ...           4 years ago
  • 4.0.1                                ...           4 years ago
  • 4.0.0                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 2.5.0                                ...           5 years ago
  • 2.3.0                                ...           5 years ago
  • 2.2.1                                ...           5 years ago
  • 2.2.0                                ...           5 years ago
  • 2.1.0                                ...           5 years ago
  • 2.0.0                                ...           6 years ago
  • 1.4.0                                ...           6 years ago
  • 1.3.0                                ...           6 years ago
  • 1.2.1                                ...           7 years ago
  • 1.2.0                                ...           7 years ago
  • 1.1.0                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Total 21
Today 0
This Week 0
This Month 21
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE