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

collect.js

Package Overview
Dependencies
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

collect.js - npm Package Compare versions

Comparing version 4.0.3 to 4.0.4

4

index.d.ts

@@ -153,5 +153,5 @@ type Operator = "===" | "==" | "!==" | "!=" | "<>" | ">" | "<" | ">=" | "<="

/**
* The has method determines if a given key exists in the collection.
* The has method determines if one or more keys exists in the collection.
*/
has<K>(key: K): boolean;
has<K>(key: K | Item[]): boolean;

@@ -158,0 +158,0 @@ /**

{
"name": "collect.js",
"version": "4.0.3",
"version": "4.0.4",
"description": "Convenient and dependency free wrapper for working with arrays and objects.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -758,3 +758,3 @@ # <img src="https://raw.githubusercontent.com/ecrmnn/collect.js/master/collectjs.jpg" alt="collect.js">

#### ``has()``
The has method determines if a given key exists in the collection:
The has method determines if one or more keys exists in the collection:
```js

@@ -769,2 +769,10 @@ const collection = collect({

//=> true
collection.has(['animal', 'ability']);
//=> true
collection.has(['animal', 'ability', 'name']);
//=> false
```

@@ -771,0 +779,0 @@

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