Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bloody-collections

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bloody-collections - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

lib/zip.js

1

index.js

@@ -20,2 +20,3 @@ module.exports = {

, iterator : require("./lib/iterator")
, zip : require("./lib/zip")
}

2

package.json

@@ -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]]
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc