presidium-websocket
Version:
Presidium WebSocket client and server for Node.js
14 lines (12 loc) • 307 B
JavaScript
/**
* @name functionConcatSync
*
* @synopsis
* ```coffeescript [specscript]
* functionConcatSync(fn1 function, fn2 function) -> concatenated function
* ```
*/
const functionConcatSync = (fn1, fn2) => function _concatenated(...args) {
return fn2(fn1(...args))
}
module.exports = functionConcatSync