Inspectopedia
 
2024.3

Redundant spread operator

Warning
New
Last modified: 03 December 2024

Reports the use of a redundant spread operator for a family of arrayOf function calls.

Use the 'Remove redundant spread operator' quick-fix to clean up the code.

Examples:

After the quick-fix is applied: