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

https://github.com/yornaath/func-invoke

Functional helper for method invocation
https://github.com/yornaath/func-invoke

Last synced: 7 months ago
JSON representation

Functional helper for method invocation

Awesome Lists containing this project

README

          

### invoke

```javascript

var invoke = require( 'func-invoke' )

documents.forEach( invoke('setState', 'saved') )
```

### invoke.async

```javascript

var invoke = require( 'func-invoke' ).async

async.forEach( documents, invoke('save', 'redis'), function( err ){
// done saving, or error
})
```