Skip to content

Instantly share code, notes, and snippets.

@iantocristian
iantocristian / snippets.md
Last active March 10, 2016 15:18
Seneca snippets

Extract actual arguments from args:

seneca.add({role:'api', cmd:'ping'}, function(args, cb) { 
  var actualargs = seneca.util.argprops({}, args, {}, 'role, cmd')
})

argprops signature: argprops(defaults, args, fixed, omit)