Skip to content

no-assign-mutated-array Allow mutation of an array after flat and flatMap#68

Open
jjbenson85 wants to merge 1 commit intocartant:mainfrom
jjbenson85:main
Open

no-assign-mutated-array Allow mutation of an array after flat and flatMap#68
jjbenson85 wants to merge 1 commit intocartant:mainfrom
jjbenson85:main

Conversation

@jjbenson85
Copy link
Copy Markdown

Changes

  • Update creatorRegExp in no-assign-mutated-array rule to include flat and flatMap
  • Updates tests to check that mutation after flat and flatMap is valid

Notes

flat and flatMap both return new arrays so it is safe to assign them after mutation.

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.

1 participant