Use for..of in destructuring with loop example

This commit is contained in:
Vicky Chijwani 2017-11-26 19:38:37 +05:30 committed by GitHub
parent da04a028e5
commit 5ccab63867
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
```js
for (let {title, artist} in songs) {
for (let {title, artist} of songs) {
···
}
```