@jswork/next-object-operator

1.0.2 • Public • Published

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.

/@jswork/next-object-operator/

    Package Sidebar

    Install

    npm i @jswork/next-object-operator

    Homepage

    js.work

    Weekly Downloads

    85

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    6.53 kB

    Total Files

    6

    Last publish

    Collaborators

    • afeiship