Last active
August 29, 2015 14:14
-
-
Save mason-stewart/aa03b757fe54cb912c79 to your computer and use it in GitHub Desktop.
wow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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