Library API
    Preparing search index...

    Function getType

    • Returns an object's type as a ProperCase string (e.g., 'String', 'Number', 'Array'). If the object is a registered class instance, returns its class name.

      Parameters

      • Optionalobj: any

        The value to determine the type of

      • ...instances: Instance[]

        Optional list of additional custom instances to check against

      Returns Type

      The string representation of the object's type

      Load-Order Dependency: Consumers must import modules that call registerType() before calling getType() to ensure custom types are correctly identified.

      getType([]); // 'Array'