bindKey
Creates a function that invokes the method at a given key of an object, optionally prepending any additional supplied parameters to the arguments.
- Return a
functionthat usesFunction.prototype.apply()to bindcontext[fn]tocontext. - Use the spread operator (
...) to prepend any additional supplied parameters to the arguments.