Skip to content

Instantly share code, notes, and snippets.

@josephwegner
Forked from jessepollak/what_the_zip.txt
Last active December 29, 2015 08:48
Show Gist options
  • Save josephwegner/7645537 to your computer and use it in GitHub Desktop.
Save josephwegner/7645537 to your computer and use it in GitHub Desktop.
array_1 = [1, 2, 3, 4, 5, 6]
array_2 = [7, 8, 9, 10]
array_3 = zip(array_1, array_2)
array_3 = //[[1,7],[2,8],[3, 9],[4,10]]
//OR
//[[1,7],[2,8],[3, 9],[4,10],[5,undefined],[6,undefined]]
//OR
//ERROR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment