@petsel/es-type-detection - v1.0.0
    Preparing search index...

    Function getTypeSignature

    • Returns the internal type signature of the first argument, if provided.

      This function exposes a value’s internal [[Class]] tag (aka type signature), such as '[object Function]' for a function or '[object String]' for a string - whether it's a primitive string value or a String object type.

      Internally, it delegates to the standard prototype toString method:

      Object.prototype.toString.call(value);
      

      Parameters

      • ...args: any[]

        A variadic argument list. The first argument (args[0]) is the optional value parameter. Its presence is detected via args.length, allowing the function to distinguish between an explicitly passed undefined value and a completely omitted argument.

      Returns string

      The value’s internal type signature (e.g., '[object Array]' for an Array instance), or the undefined value if no argument was passed.