mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 11:12:21 +00:00
Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages
This commit is contained in:
commit
21f79e4346
@ -955,7 +955,7 @@ foo(2, 4, 6, 8)
|
|||||||
(function() {
|
(function() {
|
||||||
return [
|
return [
|
||||||
(() => this.x).bind({ x: 'inner' })()
|
(() => this.x).bind({ x: 'inner' })()
|
||||||
]
|
];
|
||||||
}).call({ x: 'outer' });
|
}).call({ x: 'outer' });
|
||||||
// ['outer']
|
// ['outer']
|
||||||
```
|
```
|
||||||
@ -1363,7 +1363,7 @@ function tco(f) {
|
|||||||
active = false;
|
active = false;
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
var sum = tco(function(x, y) {
|
var sum = tco(function(x, y) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user