3.0.1 • Published 7 years ago
asobj v3.0.1
asobj
Object utility
Installation
$ npm install asobj --saveUsage
'use strict'
const { clone } = require('asobj')
{
let obj = clone({
foo: 'bar',
baz: 'quz'
}, {
without: 'baz'
})
console.log(obj) // -> { foo: 'bar' }
}Functions
Available functions
| Signature | Description |
|---|---|
.assign() -> Object | Assign object |
.cleanup(values, options, options.delNull, options.delEmptyString) -> Object | Delete undefined properties. |
.clone(src, options, options.without) -> Object | Clone a object |
.deepEqual(obj1, obj2) -> boolean | Compare object deeply |
.dig(src, keys) -> * | Dig object props |
.keyFor(, ) -> string | Get key for value |
.retrieve(obj, name) -> * | Retrieve attribute value from object |
.shallowEqual(obj1, obj2) -> boolean | Performs equality by iterating through keys on an object and returning false |
License
This software is released under the MIT License.
Links
3.0.1
7 years ago
3.0.0
8 years ago
2.1.4
8 years ago
2.1.3
8 years ago
2.1.2
8 years ago
2.1.1
8 years ago
2.1.0
8 years ago
2.0.10
8 years ago
2.0.9
8 years ago
2.0.8
8 years ago
2.0.5
8 years ago
2.0.4
8 years ago
2.0.3
8 years ago
2.0.2
9 years ago
2.0.1
9 years ago
2.0.0
9 years ago
1.5.0
10 years ago
1.4.0
10 years ago
1.3.1
10 years ago
1.3.0
10 years ago
1.1.0
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago