Skip to content

Instantly share code, notes, and snippets.

@jessepollak
Created November 25, 2013 15:59
Show Gist options
  • Save jessepollak/7643631 to your computer and use it in GitHub Desktop.
Save jessepollak/7643631 to your computer and use it in GitHub Desktop.
var array_1 = [1, 2, 3, 4];
var array_2 = [1, 2, 3];
_.zip(array_1, array_2);
// => [[1, 1], [2, 2], [3, 3], [4, undefined]]
_.zip(array_2, array_1);
// => [[1, 1], [2, 2], [3, 3], [undefined, 4]]
@vinilocks1
Copy link

vvv

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