https://github.com/afeiship/next-delete-if
Delete from object on if condition.
https://github.com/afeiship/next-delete-if
delete-if next omit omit-by
Last synced: 16 days ago
JSON representation
Delete from object on if condition.
- Host: GitHub
- URL: https://github.com/afeiship/next-delete-if
- Owner: afeiship
- License: mit
- Created: 2017-10-13T06:47:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-11-22T05:46:22.000Z (over 5 years ago)
- Last Synced: 2025-03-17T22:55:53.570Z (about 1 year ago)
- Topics: delete-if, next, omit, omit-by
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-delete-if
> Delete from object on if condition.
[![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-delete-if
```
## usage
```js
import '@jswork/next-delete-if';
const obj = { name: 'fei', age: 122 };
nx.deleteIf(obj, ['age'], (obj) => obj.age < 100); // delete failed
```
## license
Code released under [the MIT license](https://github.com/afeiship/next-delete-if/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/next-delete-if
[version-url]: https://npmjs.org/package/@jswork/next-delete-if
[license-image]: https://img.shields.io/npm/l/@jswork/next-delete-if
[license-url]: https://github.com/afeiship/next-delete-if/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-delete-if
[size-url]: https://github.com/afeiship/next-delete-if/blob/master/dist/next-delete-if.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/next-delete-if
[download-url]: https://www.npmjs.com/package/@jswork/next-delete-if