Function isNil

  • It will determine whether the provided value is null/undefined or not.

    Parameters

    • value: unknown

    Returns value is undefined | null

    Since

    1.0.0

    Example

    isNull(null);
    // => true

    Example

    isNil(undefined);
    // => true

    Example

    isNil(void 0);
    // => true