Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db1c844

Browse files
committed
Add changelog
1 parent 06d2b99 commit db1c844

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#### Add parentheses to head of `ExpressionStatement` instead of the whole statement (#14047 by @fisker)
2+
3+
<!-- prettier-ignore -->
4+
```jsx
5+
// Input
6+
({}).toString.call(foo) === "[object Array]"
7+
? foo.forEach(iterateArray)
8+
: iterateObject(foo);
9+
10+
// Prettier stable
11+
({}.toString.call(foo) === "[object Array]"
12+
? foo.forEach(iterateArray)
13+
: iterateObject(foo));
14+
15+
// Prettier main
16+
({}).toString.call(foo.forEach) === "[object Array]"
17+
? foo.forEach(iterateArray)
18+
: iterateObject(foo);
19+
```

0 commit comments

Comments
 (0)