Returns a human-friendly debug string for a tree-like structure

console.log(Trees.prettyPrint(obj));
  • Parameters

    • node: object
    • indent: number = 0
    • options: Partial<Readonly<{
          filter: "none" | "leaves" | "branches";
          name: string;
      }>> = {}

    Returns string