Bounds the given context to the given method.
const bindConsole = bind(console);const log = bindConsole(console.log);log("Hello world!"); // Logs "Hello world!" without context errors.
Curried function with context in context.
context
Bounds the given context to the given method.
Example
Returns
Curried function with
context
in context.