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

object-lib

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-lib - npm Package Compare versions

Comparing version 1.3.0 to 2.0.0

lib/core/contains.js

4

lib/index.js

@@ -5,3 +5,3 @@ "use strict";

const contain = require('./core/contain');
const contains = require('./core/contains');

@@ -12,4 +12,4 @@ const Merge = require('./core/merge');

align,
contain,
contains,
Merge
};
{
"name": "object-lib",
"version": "1.3.0",
"version": "2.0.0",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "repository": {

@@ -36,3 +36,3 @@ # object-lib

### contain(tree: Object, subtree: Object)
### contains(tree: Object, subtree: Object)

@@ -54,8 +54,8 @@ Check if `subtree` is contained in `tree` recursively.

```js
const { contain } = require('object-lib');
const { contains } = require('object-lib');
contain({ a: [1, 2], b: 'c' }, { a: [1, 2] });
contains({ a: [1, 2], b: 'c' }, { a: [1, 2] });
// => true
contain({ a: [1, 2], b: 'c' }, { a: [1] });
contains({ a: [1, 2], b: 'c' }, { a: [1] });
// => false

@@ -62,0 +62,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