func-invoke

Functional helper for invoking methon on instance, sync and async

npm install func-invoke
2 downloads in the last week
4 downloads in the last month

invoke


var invoke = require( 'invoke' )

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

invoke.async


var invoke = require( 'invoke' ).async

async.forEach( documents, invoke('save', 'redis'), function( err ){

})
npm loves you