Skip to content

Commit

Permalink
Merge pull request coffeescript-cookbook#62 from poulejapon/patch-2
Browse files Browse the repository at this point in the history
Update chapters/arrays/zip-function.md
  • Loading branch information
dbrady committed Nov 6, 2012
2 parents 096fd52 + e19a815 commit ca8c051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapters/arrays/zip-function.md
Expand Up @@ -15,7 +15,7 @@ Use the following CoffeeScript code:
# Usage: zip(arr1, arr2, arr3, ...)
zip = () ->
lengthArray = (arr.length for arr in arguments)
length = Math.max(lengthArray...)
length = Math.min(lengthArray...)
for i in [0...length]
arr[i] for arr in arguments

Expand Down

0 comments on commit ca8c051

Please sign in to comment.