4.0.2 • Published 1 year ago

@putout/plugin-convert-for-to-for-of v4.0.2

Weekly downloads
2,777
License
MIT
Repository
github
Last release
1 year ago

@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

4.0.1

1 year ago

4.0.2

1 year ago

4.0.0

2 years ago

3.0.0

2 years ago

2.3.0

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.5.0

2 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago