Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06d2b99 commit db1c844Copy full SHA for db1c844
changelog_unreleased/javascript/14077.md
@@ -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
13
+ : iterateObject(foo));
14
15
+// Prettier main
16
+({}).toString.call(foo.forEach) === "[object Array]"
17
18
19
+```
0 commit comments