tooc
v1.0.0
Published
A lib for managing objects
Downloads
3
Readme
tooc
Took is micro library for managing objects on javascript.
Installation
npm install tooc --save
Example
const tooc = require('tooc');
const obj = new tooc({
field1: {
field12: null,
arr: [1, 2, {
d: 'ool',
}],
},
});
console.dir(obj.get('field1.arr[1]'));
obj.push('field1.arr', 123)
console.dir(obj.get('field1.arr'));