• Checks if a value is Falsy

    The opposite of isNotNullish

    Example

    const result = isNullish(null);
    console.log(result); // true

    Example

    const result = isNullish(undefined);
    console.log(result); // true

    Example

    const result = isNullish(0);
    console.log(result); // false

    Returns

    true if value is Falsy, otherwise false

    Parameters

    • value: unknown

      the value to check

    Returns value is Nullish

Generated using TypeDoc