Prevent returning or assigning mutating array methods, to improve readability and also protect against accidentally mutating an array in-place when you shouldn't. Array#sort()
, Array#fill()
, Array#reverse()
.
console.log(foo.sort());
const sorted = foo.sort();
foo.sort();
console.log(foo);
foo.sort();
I guess we should also allow the case where there's an intermediate array?
const sorted = foo.map(…).sort();
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too