Created
February 15, 2023 21:25
-
-
Save renatarko/c08478c0df93af936eb3a1967bdcb45b to your computer and use it in GitHub Desktop.
falsy or truthy
This file contains hidden or 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
| // falsy | |
| "" (string vazia) | |
| 0, -0, NaN (number inválido) | |
| null, undefined | |
| false | |
| // truthy | |
| "hello" | |
| 42 | |
| true | |
| [ ], [ 1, "2", 3 ]; (arrays) | |
| { }, { a: 42 } (objects) | |
| function foo() { .. } (functions) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment