Skip to content

Conversation

@gingeekrishna
Copy link

document behavior of zip functions with arrays of different lengths

  • Add documentation for zip(), zipWith(), zipObject(), and zipObjectDeep()
  • Clarify that zip/zipWith iterate until longest array is exhausted
  • Explain that missing elements are filled with undefined
  • Document that zipObject/zipObjectDeep ignore extra values and assign undefined for extra props
  • Add examples showing behavior with arrays of different lengths

Fixes #6006

…gths

- Add documentation for zip(), zipWith(), zipObject(), and zipObjectDeep()
- Clarify that zip/zipWith iterate until longest array is exhausted
- Explain that missing elements are filled with undefined
- Document that zipObject/zipObjectDeep ignore extra values and assign undefined for extra props
- Add examples showing behavior with arrays of different lengths

Fixes lodash#6006
@gingeekrishna
Copy link
Author

is that any more changes required in this PR?

@gingeekrishna
Copy link
Author

@Cassieminkus1 is that any reason my PR is still pending to merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Document behavior of functions when lengths of input arrays do not match

3 participants