mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
add additional example for strict equality
This commit is contained in:
@@ -384,6 +384,10 @@ When possible, use strict equality.
|
||||
> if (value === 5) {
|
||||
> // do stuff...
|
||||
> }
|
||||
>
|
||||
> if (otherValue !== 6) {
|
||||
> // do more stuff...
|
||||
> }
|
||||
> ```
|
||||
>
|
||||
> **Don't**
|
||||
@@ -392,6 +396,10 @@ When possible, use strict equality.
|
||||
> if (value == 5) {
|
||||
> // do stuff...
|
||||
> }
|
||||
>
|
||||
> if (otherValue != 6) {
|
||||
> // do more stuff...
|
||||
> }
|
||||
> ```
|
||||
|
||||
> **Reason**
|
||||
|
||||
Reference in New Issue
Block a user