isTruthy
Determine whether the input value is truthy.
Usage
ts
import { isTruthy } from 'rattail'
isTruthy(1) // return true
isTruthy([]) // return true
isTruthy({}) // return true
isTruthy(0) // return false
isTruthy('') // return false
isTruthy(null) // return false
isTruthy(undefined) // return falseArguments
| Arg | Type | Defaults |
|---|---|---|
value | any |
Return
| Type |
|---|
boolean |