bloody-collections
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -20,2 +20,3 @@ module.exports = { | ||
, iterator : require("./lib/iterator") | ||
, zip : require("./lib/zip") | ||
} |
@@ -5,3 +5,3 @@ { | ||
"issues" : "https://github.com/bloodyowl/collections/issues", | ||
"version" : "0.5.0", | ||
"version" : "0.6.0", | ||
"scripts" : { | ||
@@ -8,0 +8,0 @@ "test" : "tape test/*.js" |
@@ -196,1 +196,12 @@ # collections | ||
``` | ||
### `zip(array1, array2, …) -> array` | ||
Returns a array of arrays containing the values for their index in `array1`, `array2` etc. | ||
```javascript | ||
zip(["foo", "bar"], [1, 2], [true, false]) | ||
// [["foo", 1, true], ["bar", 2, false]] | ||
zip(["foo", 1, true], ["bar", 2, false]) | ||
// [["foo", "bar"], [1, 2], [true, false]] | ||
``` |
30575
46
883
207