function truthy
truthy(thing: unknown): boolean

Determines if the given value is truthy.

Examples

Example 1

truthy(true); // true
truthy(false); // false
truthy(''); // false

Parameters

thing: unknown

Return Type

boolean

Usage

import { truthy } from ".";