artdaq_node_server
v1_00_08
|
var say = _.rest(function(what, names) { return what + ' ' + _.initial(names).join(', ') + (_.size(names) > 1 ? ', & ' : '') + _.last(names); });
say('hello', 'fred', 'barney', 'pebbles'); // => 'hello fred, barney, & pebbles'