Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove useless spread #11

Merged
merged 1 commit into from
Mar 1, 2021
Merged

Remove useless spread #11

merged 1 commit into from
Mar 1, 2021

Conversation

coderaiser
Copy link
Contributor

Array.flat creates new array, so spread here has no sense.

This can be easily detected with help of @putout/remove-useless-spread rule of putout code transformer.

@sindresorhus sindresorhus changed the title index: remove useless spread Remove useless spread Mar 1, 2021
@sindresorhus sindresorhus merged commit 6a82f93 into sindresorhus:main Mar 1, 2021
@coderaiser coderaiser deleted the patch-1 branch March 1, 2021 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants