dmbobjects
v2.0.3
Published
Javascript objects manipulation emulating arrays methods like map and filter. Also pick, fusion and validation of objects with schemas.
Downloads
8
Maintainers
Readme
dmbobjects
Javascript objects manipulation emulating arrays methods like map and filter. Also pick, fusion and validation of objects with schemas.
Install
npm i dmbobjects -s
Import
const o = require('dmbobjects');
Functions overview
Returns a independent copy of one object.
Obtain a new object with only the properties you want.
Obtain a new object with only the properties you select by a callback.
Obtain a new object with the values modified by your own callback.
Update an object with the data of another object using different modifiers or even your own callback.
Obtain a new object with the data of another object using different modifiers or even your own callback applied over all the resulting object properties.
Validate if an object matches a validation scheme defined by you.
Same as validate, but it don't modify the original object and it returns a corrected object if validation is fine.
Returns an array with the properties of the given object.
Returns the value of any property at the object. Especially useful when working with nested properties.
Add or modify the value of any property at the object. Especially useful when working with nested properties.
Returns true if exists the indicated property at the object. Especially useful when working with nested properties.