From c4a1d93ec3d8a20b5a125424dc659aaaaa9e6cce Mon Sep 17 00:00:00 2001 From: LuckyTiger66 Date: Tue, 21 Jan 2020 14:58:44 +0800 Subject: [PATCH] ES6 --- app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.js b/app.js index e94cfb3..50e4bdc 100644 --- a/app.js +++ b/app.js @@ -6,3 +6,5 @@ console.log(Array.isArray(Array.from(titles))); Array.from(titles).forEach(function(title){ console.log(title); }); + +Array.from(titles).forEach(title => console.log(title));