From 94f0d4921f1a5c76726701fff35eb89310b566bb Mon Sep 17 00:00:00 2001 From: tommyZZM Date: Wed, 2 Dec 2015 16:44:36 +0800 Subject: [PATCH] Update style.md --- docs/style.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/docs/style.md b/docs/style.md index fcdd7e2..33ac06c 100644 --- a/docs/style.md +++ b/docs/style.md @@ -266,11 +266,6 @@ const nodes = Array.from(foo); // best [1, 2, 3].map(x => x * x); - -// best -[1, 2, 3].map((x,i) => { - return x * i; -}); ``` 箭头函数取代`Function.prototype.bind`,不应再用self/\_this/that绑定 this。