artdaq_node_server
v1_00_07
|
function greet(greeting, punctuation) { return greeting + ' ' + this.user + punctuation; }
var object = { 'user': 'fred' };
var bound = _.bind(greet, object, 'hi'); bound('!'); // => 'hi fred!'
// Bound with placeholders. var bound = _.bind(greet, object, _, '!'); bound('hi'); // => 'hi fred!'