File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 9
9
* [ this] ( docs/javascript/this.md )
10
10
* [ Closure] ( docs/javascript/closure.md )
11
11
* [ Number] ( docs/javascript/number.md )
12
+ * [ Truthy] ( docs/tips/truthy.md )
12
13
* [ Future JavaScript Now] ( docs/future-javascript.md )
13
14
* [ Classes] ( docs/classes.md )
14
15
* [ Classes Emit] ( docs/classes-emit.md )
93
94
* [ static constructors] ( docs/tips/staticConstructor.md )
94
95
* [ singleton pattern] ( docs/tips/singleton.md )
95
96
* [ Function parameters] ( docs/tips/functionParameters.md )
96
- * [ Truthy] ( docs/tips/truthy.md )
97
97
* [ Build Toggles] ( docs/tips/build-toggles.md )
98
98
* [ Barrel] ( docs/tips/barrel.md )
99
99
* [ Create Arrays] ( docs/tips/create-arrays.md )
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ Quite commonly it helps to be explicit that the intent is to treat the value as
30
30
31
31
It is common to use this pattern in lots of places e.g.
32
32
33
- ``` ts
33
+ ``` js
34
34
// Direct variables
35
35
const hasName = !! name;
36
36
@@ -39,6 +39,6 @@ const someObj = {
39
39
hasName: !! name
40
40
}
41
41
42
- // e.g. ReactJS
42
+ // e.g. in ReactJS JSX
43
43
{!! someName && < div> {someName}< / div> }
44
44
```
You can’t perform that action at this time.
0 commit comments