Skip to content

docs: document behavior of zip functions with arrays of different lengths #6009

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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