Options
All
  • Public
  • Public/Protected
  • All
Menu

Module utils/debug

Index

Functions

Functions

dumpArray

  • dumpArray(arr: unknown): string
  • Dumps stringified array

    Parameters

    • arr: unknown

      Array to dump

    Returns string

    string array dump

dumpNode

  • dumpNode(node: Node, index?: number, level?: number): undefined | string
  • Returns string tree representation of Node and its children, useful for logging

    Parameters

    • node: Node

      root Node

    • index: number = 0

      order number of child

    • level: number = 0

      depth of recursion used for tree indentation

    Returns undefined | string

Generated using TypeDoc