4.0.0 β€’ Published 1 year ago

@putout/plugin-convert-apply-to-spread v4.0.0

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

@putout/plugin-convert-apply-to-spread NPM version

Spread syntax (...) allows an array expression to be expanded in places where zero or more arguments are expected.

(c) MDN

🐊Putout plugin adds ability to convert apply to spread.

Install

npm i @putout/plugin-convert-apply-to-spread -D

Rule

{
    "rules": {
        "convert-apply-to-spread": "on"
    }
}

❌ Example of incorrect code

console.apply(null, arguments);

βœ… Example of correct code

console.log(...arguments);

License

MIT

4.0.0

1 year ago

3.1.0

5 years ago

3.0.0

5 years ago

2.0.0

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago