来自:http://es6.ruanyifeng.com/#docs/style
1,=>
// bad console.log([1,2,3,4].map(function(x){return x+1})) // good console.log([1,2,3,4].map((x)=>{return x+1;})) // best console.log([1,2,3,4].map(x=>x+1))
来自:http://es6.ruanyifeng.com/#docs/style
1,=>
// bad console.log([1,2,3,4].map(function(x){return x+1})) // good console.log([1,2,3,4].map((x)=>{return x+1;})) // best console.log([1,2,3,4].map(x=>x+1))