Function inspect

  • Inspects a given value and returns a string representation of it. The function uses ANSI color codes to highlight different parts of the output. It can handle and correctly output different types of values including primitives, functions, arrays, and objects.

    Parameters

    • v: unknown

      The value to inspect.

    • opts: InspectOptions = {}

      Options which may modify the generated string representation of the value.

    Returns string

    A string representation of v with ANSI color codes.

Generated using TypeDoc