https://github.com/pgilad/remove-and-do
Remove an item from a collection in context and run an action on removed item
https://github.com/pgilad/remove-and-do
Last synced: about 1 month ago
JSON representation
Remove an item from a collection in context and run an action on removed item
- Host: GitHub
- URL: https://github.com/pgilad/remove-and-do
- Owner: pgilad
- License: mit
- Created: 2016-01-19T12:11:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-19T12:15:57.000Z (over 10 years ago)
- Last Synced: 2025-03-06T03:18:07.951Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# remove-and-do
> Remove an item from a collection in context and run an action on removed item
## Installation
```sh
$ npm install --save remove-and-do
```
## Usage
```js
var removeAndDo = require('remove-and-do');
removeAndDo(this, collection, thing, action);
// -> true if removed, false otherwise
```
## License
MIT ©[Gilad Peleg](http://giladpeleg.com)