@jswork/next-object-operator
v1.0.2
Published
Object set/get/sets/gets and other operator.
Downloads
335
Readme
next-object-operator
Object set/get/sets/gets and other operator.
installation
npm install -S @jswork/next-object-operatorapis
| api | params | description | | ---- | ------------ | --------------------- | | get | (path) | Get value by path. | | set | (path,value) | Set value by parh. | | gets | - | Get the whole object. | | sets | (object) | Sets multiple values. |
usage
import NxObjectOperator from '@feizheng/next-object-operator';
const data = {};
const operator = new NxObjectOperator(data);
// operators
operator.set
operator.get
operator.sets
operator.getslicense
Code released under the MIT license.
