improvements
This commit is contained in:
parent
439cf4c491
commit
b8d63d3188
1 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,10 @@ function mul(a, b) {
|
|||
Let's use `bind` to create a function `double` on its base:
|
||||
|
||||
```js run
|
||||
function mul(a, b) {
|
||||
return a * b;
|
||||
}
|
||||
|
||||
*!*
|
||||
let double = mul.bind(null, 2);
|
||||
*/!*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue