Object Helpers
Helper functions to work with Objects
Installation
npm install object-helpers
Usage
const ObjHelpers = ; // get ObjHelpers; > Output should be `1` ObjHelpers; > Output should be `undefined` ObjHelpers; > Output should be `undefined` // set const obj = a: b: 1; ObjHelpers; > Object should be `{a: {b: 2}}` ObjHelpers; > Object should be `{a: {b: 2}}` ObjHelpers; > Object should be `{a: {b: 2, c: { d: 2 }}}` // has const obj = a: b: 1; ObjHelpers; > Output should be `true` ObjHelpers; > Output should be `false` ObjHelpers; > Output should be `true` // delete const obj = a: a1: a11: 'foo' b: b1: 'bar' ; ObjHelpers; console; > Output should be `undefined` const res = ObjHelpers; > res should be `undefined` ObjHelpers; console > Output should be `undefined`
ToDO
[] get values from object
Tests
npm test
Contributing
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.