object-lib
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "object-lib", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -16,6 +16,16 @@ # object-lib | ||
## Functions | ||
## Basic Setup | ||
### align(obj: Object, ref: Object) | ||
Align the ordering of one object recursively to a reference object. | ||
... | ||
_Example:_ | ||
<!-- eslint-disable no-undef --> | ||
```js | ||
const obj = { k1: 1, k2: 2 }; | ||
const ref = { k2: null, k1: null }; | ||
align(obj, ref); | ||
// obj => { k2: 1, k1: 2 } | ||
``` |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
6281
5
26
31
0