Partial application creates a new callable by fixing some arguments of an existing function and leaving the rest for a later call. A five-parameter function can become one expecting only its remaining two parameters. The fixed values stay in the resulting function’s closure, and the later call evaluates the function. section 4.4
Create a more specific logger
Use Lodash to fix the logger’s first three arguments, then create an even more specific logger: const consoleLog = _.partial(logger, 'console', 'json', 'FJS Partial'); const consoleInfoLog = _.partial(consoleLog, 'INFO'); consoleInfoLog('INFO logger configured with partial'); Unlike a curried function, the remaining arguments are supplied together. Calling consoleLog with only one remaining argument evaluates the function rather than returning another function. section 4.4









