1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages

This commit is contained in:
ruanyf 2017-03-29 14:54:32 +08:00
commit f29bae250d
2 changed files with 2 additions and 2 deletions

View File

@ -585,7 +585,7 @@ try {
Generator函数体外抛出的错误可以在函数体内捕获反过来Generator函数体内抛出的错误也可以被函数体外的`catch`捕获。
```javascript
function *foo() {
function* foo() {
var x = yield 3;
var y = x.toUpperCase();
yield y;

View File

@ -991,7 +991,7 @@ function entries(obj) {
## 对象的扩展运算符
《数组的扩展》一章中,已经介绍过扩展算符(`...`)。
《数组的扩展》一章中,已经介绍过扩展算符(`...`)。
```javascript
const [a, ...b] = [1, 2, 3];