prefer-rest-params
Configuration
rslint.config.ts
Rule Details
Requires rest parameters instead of arguments.
There are rest parameters in ES2015. We can use that feature for variadic functions instead of the arguments variable. arguments does not have methods of Array.prototype, so it's a bit inconvenient.
Examples of incorrect code for this rule:
Examples of correct code for this rule: