Skip to content

Instantly share code, notes, and snippets.

@BennisonDevadoss
Created June 2, 2022 14:55
Show Gist options
  • Save BennisonDevadoss/c61e1e24c4586571ec8bab70b75cc5e9 to your computer and use it in GitHub Desktop.
Save BennisonDevadoss/c61e1e24c4586571ec8bab70b75cc5e9 to your computer and use it in GitHub Desktop.
console.log(Boolean(undefined)) // false
console.log(Boolean(null)) // false
console.log(Boolean(NaN)) // false
console.log(Boolean(0)) // false
console.log(Boolean("")) // false
@BennisonDevadoss
Copy link
Author

falsy value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment