https://github.com/afeiship/next-object-operator
Object set/get/sets/gets and other operator.
https://github.com/afeiship/next-object-operator
data get gets next operator set sets store
Last synced: 4 months ago
JSON representation
Object set/get/sets/gets and other operator.
- Host: GitHub
- URL: https://github.com/afeiship/next-object-operator
- Owner: afeiship
- License: mit
- Created: 2020-06-06T03:02:43.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-30T03:08:18.000Z (almost 3 years ago)
- Last Synced: 2025-10-19T23:57:59.270Z (8 months ago)
- Topics: data, get, gets, next, operator, set, sets, store
- Language: JavaScript
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-object-operator
> Object set/get/sets/gets and other operator.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```bash
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
```js
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](https://github.com/afeiship/next-object-operator/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/next-object-operator
[version-url]: https://npmjs.org/package/@jswork/next-object-operator
[license-image]: https://img.shields.io/npm/l/@jswork/next-object-operator
[license-url]: https://github.com/afeiship/next-object-operator/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-object-operator
[size-url]: https://github.com/afeiship/next-object-operator/blob/master/dist/next-object-operator.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/next-object-operator
[download-url]: https://www.npmjs.com/package/@jswork/next-object-operator