Skip to content

Instantly share code, notes, and snippets.

@mason-stewart
Last active August 29, 2015 14:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mason-stewart/aa03b757fe54cb912c79 to your computer and use it in GitHub Desktop.
Save mason-stewart/aa03b757fe54cb912c79 to your computer and use it in GitHub Desktop.
wow
function zipPrint(array) {
console.log('parent array length is ', array.length);
_.each(array[0], function(item, index){
_.times(array.length, function(parentIndex){
console.log(array[parentIndex][index]);
})
})
}
zipPrint([[1, 2, 3], ['a', 'b', 'c'], [6,7,8]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment