Merge pull request #293 from vickychijwani/patch-1

ES6: Use for..of in destructuring with loop example
This commit is contained in:
Rico Sta. Cruz 2017-11-27 19:40:57 +08:00 committed by GitHub
commit 3c30310537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
es6.md
View File

@ -250,7 +250,7 @@ This example assigns `x` to the value of the `left` key.
### Loops ### Loops
```js ```js
for (let {title, artist} in songs) { for (let {title, artist} of songs) {
··· ···
} }
``` ```