object-lib
Advanced tools
Comparing version 1.3.0 to 2.0.0
@@ -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 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11069