rubico
Version:
[a]synchronous functional programming
15 lines (13 loc) • 293 B
JavaScript
/**
* @name funcCall
*
* @synopsis
* ```coffeescript [specscript]
* funcCall(func function, context Object, ...args) -> any
* ```
*
* @description
* Apply arguments to a function.
*/
const funcCall = (func, context, ...args) => func.call(context, ...args)
module.exports = funcCall