Convert .apply() to spread syntax

Replace .apply() calls with the spread operator ...

P42 for VS Code
P42 for GitHub
Convert .apply() to spread syntax

The spread syntax (...) allows iterables like array expressions to be expanded in place where arguments are expected. It can used in place of .apply. For example Math.min.apply(Math, args) can be replaced with Math.min(...args).

Learn More

Available In