ES6: update fat arrow

This commit is contained in:
Rico Sta. Cruz 2015-03-11 20:06:22 +08:00
parent 538863edd4
commit c61149cbec
1 changed files with 8 additions and 1 deletions

9
es6.md
View File

@ -201,7 +201,14 @@ Like functions but with `this` preserved.
```js
// Fat arrows
setTimeout(() => {
console.log('hi');
...
});
```
```js
// With arguments
readFile('text.txt', (err, data) => {
...
});
```