1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-29 05:42:20 +00:00

Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages

This commit is contained in:
ruanyf 2015-12-03 15:24:17 +08:00
commit 99261d7e19

View File

@ -263,6 +263,9 @@ const nodes = Array.from(foo);
[1, 2, 3].map((x) => { [1, 2, 3].map((x) => {
return x * x; return x * x;
}); });
// best
[1, 2, 3].map(x => x * x);
``` ```
箭头函数取代`Function.prototype.bind`不应再用self/\_this/that绑定 this。 箭头函数取代`Function.prototype.bind`不应再用self/\_this/that绑定 this。