Is Falsy
Checks if the value is falsy.
| Category | Validations |
| Author | Polgubau |
| Since | 1.0.0 |
| Last Updated | 2025-03-17 |
| Type | Sync |
| Compatibility | Universal |
Example
Input
isFalsy(0)Output:
true
Input
isFalsy('Hello')Output:
false
Input
isFalsy(false)Output:
true
Input
isFalsy('')Output:
true
Return
Returns `true` if the value is falsy, otherwise `false`.
Type: boolean
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| value | any | null | No | The value to check. |
Notes
Falsy values include: `false`, `null`, `undefined`, `0`, `NaN`, and an empty string.
Tags
- validation
- falsy
- boolean