English | 简体中文
Returns a function that calls fn with headArgs followed by the arguments
received by the returned function.
const logWithScope = headParams(console.log, '[build]')
logWithScope('started') // Output: [build] startedReturns a function that calls fn with the arguments received by the returned
function followed by tailArgs.
const logDone = tailParams(console.log, 'done')
logDone('build') // Output: build done