Convert .apply() to spread syntax

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

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).

Configuration

Learn More

Available In