improvements
This commit is contained in:
parent
b8d63d3188
commit
50bee36111
1 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,10 @@ Please note that here we actually don't use `this` here. But `bind` requires it,
|
|||
The function `triple` in the code below triples the value:
|
||||
|
||||
```js run
|
||||
function mul(a, b) {
|
||||
return a * b;
|
||||
}
|
||||
|
||||
*!*
|
||||
let triple = mul.bind(null, 3);
|
||||
*/!*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue