• Learn the underlying data type of some variable. Supported identifiable types include: undefined, null, number, string, boolean, function, Array, Set, Map, Promise, Error, HTMLElement (client side only), Object (catchall for other object types)

    Parameters

    • variable: any

      A provided variable

    Returns string

    The named type of the token