From 4ac59e099c72f9d4a1a2a944efb20ceaaed288e6 Mon Sep 17 00:00:00 2001 From: banri Date: Fri, 8 Jan 2016 23:27:16 +0800 Subject: [PATCH] Update set-map.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复了变量未定义报错 --- docs/set-map.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/set-map.md b/docs/set-map.md index 0169068..57ddd73 100644 --- a/docs/set-map.md +++ b/docs/set-map.md @@ -13,7 +13,7 @@ var s = new Set(); [2,3,5,4,5,2,2].map(x => s.add(x)) -for (i of s) {console.log(i)} +for (let i of s) {console.log(i)} // 2 3 5 4 ```