@grow-codes/better-stack-logs - v0.1.1
    Preparing search index...

    Function toAttrValue

    • Converts an arbitrary value into an AttrValue. null, undefined, functions and symbols become undefined (the caller omits the key); dates become ISO strings; bigints become strings; errors become { name, message }; cycles and very deep values become "[Circular]"/"[Truncated]".

      Parameters

      • value: unknown
      • depth: number = 0
      • seen: WeakSet<object> = ...

      Returns AttrValue | undefined