Checks if a boolean is true or false
This is the most elegant and simplest way of figuring out if a boolean is false, without using complicated if statements!
- Check if a boolean is true or false
- yeah that's pretty much it...
Using your favorite node package manager, some examples below:
bun install -g @smilt/isfalse
pnpm add -g @smilt/isfalse
npm add -g @smilt/isfalseimport isFalse from '@smilt/isfalse'
const variable1 = false
const variable2 = true
console.log(isFalse(variable1)) // Returns: true
console.log(isFalse(variable2)) // Returns: false