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
- Host: GitHub
- URL: https://github.com/yornaath/func-invoke
- Owner: yornaath
- Created: 2013-02-01T13:05:16.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-02-04T21:11:05.000Z (over 12 years ago)
- Last Synced: 2025-01-22T07:35:50.456Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
})
```