commit
20da2405bc
1 changed files with 2 additions and 2 deletions
|
@ -187,8 +187,8 @@ let user = {
|
||||||
|
|
||||||
let say = user.say.bind(user);
|
let say = user.say.bind(user);
|
||||||
|
|
||||||
say("Hello"); // Hello, John ("Hello" argument is passed to say)
|
say("Hello"); // Hello, John! ("Hello" argument is passed to say)
|
||||||
say("Bye"); // Bye, John ("Bye" is passed to say)
|
say("Bye"); // Bye, John! ("Bye" is passed to say)
|
||||||
```
|
```
|
||||||
|
|
||||||
````smart header="Convenience method: `bindAll`"
|
````smart header="Convenience method: `bindAll`"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue