-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use JavaScript's definition of falsy
Fixes #186
- Loading branch information
Showing
4 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
({ | ||
"emptyString": "", | ||
"emptyArray": [], | ||
"zero": 0, | ||
"null": null, | ||
"undefined": undefined, | ||
"NaN": 0/0 | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{#emptyString}}empty string{{/emptyString}} | ||
{{^emptyString}}inverted empty string{{/emptyString}} | ||
{{#emptyArray}}empty array{{/emptyArray}} | ||
{{^emptyArray}}inverted empty array{{/emptyArray}} | ||
{{#zero}}zero{{/zero}} | ||
{{^zero}}inverted zero{{/zero}} | ||
{{#null}}null{{/null}} | ||
{{^null}}inverted null{{/null}} | ||
{{#undefined}}undefined{{/undefined}} | ||
{{^undefined}}inverted undefined{{/undefined}} | ||
{{#NaN}}NaN{{/NaN}} | ||
{{^NaN}}inverted NaN{{/NaN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
inverted empty string | ||
|
||
inverted empty array | ||
|
||
inverted zero | ||
|
||
inverted null | ||
|
||
inverted undefined | ||
|
||
inverted NaN |