3 ms·
Thanks! Sounds a bit too scientific to my ear but good to know
by yanis_t 8y ago
Thanks! Sounds a bit too scientific to my ear but good to know
- AdieuToLogic 8y agoIt is what it is, and what it is in JavaScript is this: Object.prototype.pipeTo = function (functor) { return functor (this); }; function inc (input) { return input + 1; } // this will write out "2" to the console log new Number (1).pipeTo (inc).pipeTo (console.log); HTH