Function isPrimitive

  • Returns whether the payload is a primitive type (eg. Boolean | Null | Undefined | Number | String

    | Symbol)

    Parameters

    • payload: unknown

    Returns payload is undefined | null | string | number | boolean | symbol