An open API service indexing awesome lists of open source software.

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

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)