Skip to content

Commit a1d09e6

Browse files
author
Clément Fiorio
committed
Merge pull request #10 from hugeen/patch-1
Update es6.md
2 parents 8ca94cd + f6daa62 commit a1d09e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

es6.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,10 @@ a.reduce((x, y) => x + y, 0);
236236

237237
```js
238238
// bad
239-
const triple = x => 3*x;
239+
const triple = x => 3 * x;
240240

241241
// good
242-
const triple = (x) => 3*x;
242+
const triple = (x) => 3 * x;
243243
```
244244

245245
- Arrow functions **should** be used instead of `Function.prototype.bind` when applicable. `self` / `_this` / `that` trickery **must not** be used.

0 commit comments

Comments
 (0)