Function isUndefined

  • Validate an input is undefined

    Parameters

    • input: unknown

      The raw input

    Returns Validated<undefined>

    Example

    isUndefined(undefined) >>
    {
    valid: true,
    parsed: undefined,
    };

    isUndefined(null) >>
    {
    valid: false,
    error: "Not undefined: null",
    };