Skip to content

afeiship/next-object-operator

Repository files navigation

next-object-operator

Object set/get/sets/gets and other operator.

version license size download

installation

npm install -S @jswork/next-object-operator

apis

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.gets

license

Code released under the MIT license.