From 5ccab63867c23d2c6f8c53f5bdc5624c66541066 Mon Sep 17 00:00:00 2001 From: Vicky Chijwani Date: Sun, 26 Nov 2017 19:38:37 +0530 Subject: [PATCH] Use for..of in destructuring with loop example --- es6.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es6.md b/es6.md index 5d4361f4d..4398784dd 100644 --- a/es6.md +++ b/es6.md @@ -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) { ยทยทยท } ```