artdaq_node_server  v1_00_08
 All Classes Namespaces Files Variables Pages
/scratch/workspace/artdaq-demo-v2_10_00/SLF7/s48-e14-debug/build/artdaq_node_server/v1_00_08/src/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash/bindKey.js

var object = { 'user': 'fred', 'greet': function(greeting, punctuation) { return greeting + ' ' + this.user + punctuation; } };

var bound = _.bindKey(object, 'greet', 'hi'); bound('!'); // => 'hi fred!'

object.greet = function(greeting, punctuation) { return greeting + 'ya ' + this.user + punctuation; };

bound('!'); // => 'hiya fred!'

// Bound with placeholders. var bound = _.bindKey(object, 'greet', _, '!'); bound('hi'); // => 'hiya fred!'