no-useless-spread
already handles cases like [...foo.toSorted()]
which is awesome! However, it would be nice to also handle [...foo].toSorted()
and [...foo].sort()
, both of which can be replaced with foo.toSorted()
.
cc @fisker, @sindresorhus
P.S. Similar work was done in this PR.
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