The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Partial Application with Function.bind

Partial Application with Function.bind

3:24
`Function.bind` is useful for more than locking down the `this` context when calling a function. This lesson shows how `Function.bind` can be used to make a new function with pre-specified initial arguments. This is a simple example of a functional programming technique called partial application which allows the remaining arguments to be specified when the new function is called.
Watch this lesson now
Avatar
egghead.io

Function.bind is useful for more than locking down the this context when calling a function. This lesson shows how Function.bind can be used to make a new function with pre-specified initial arguments. This is a simple example of a functional programming technique called partial application which allows the remaining arguments to be specified when the new function is called.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?