Skip to content

Conversation

jjbenson85
Copy link

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