no-array-fill-with-reference-type
UnreleasedConfiguration
rslint.config.ts
Rule Details
Disallow using reference values as Array#fill() values. Array#fill() uses
the same value for every element, so mutating one filled object also affects all
other elements.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
A receiver known not to be an array is ignored. This includes typed arrays,
whose fill() method coerces the value to a number. Unknown receivers are still
checked.