object-lib
Advanced tools
Comparing version 1.1.0 to 1.2.0
"use strict"; | ||
module.exports = (a, b) => a + b; | ||
const align = require('./core/align'); | ||
const contain = require('./core/contain'); | ||
module.exports = { | ||
align, | ||
contain | ||
}; |
{ | ||
"name": "object-lib", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -23,4 +23,6 @@ # object-lib | ||
_Example:_ | ||
<!-- eslint-disable no-undef --> | ||
<!-- eslint-disable import/no-unresolved --> | ||
```js | ||
const { align } = require('object-lib'); | ||
const obj = { k1: 1, k2: 2 }; | ||
@@ -32,1 +34,15 @@ const ref = { k2: null, k1: null }; | ||
``` | ||
### contain(tree: Object, subtree: Object) | ||
_Example:_ | ||
<!-- eslint-disable import/no-unresolved --> | ||
```js | ||
const { contain } = require('object-lib'); | ||
contain({ a: [1, 2], b: 'c' }, { a: [1, 2] }); | ||
// => true | ||
contain({ a: [1, 2], b: 'c' }, { a: [1] }); | ||
// => false | ||
``` |
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
7496
6
54
47