Creates an enclosed debug_printer with persisting value of debug. That way debug doesn't need be passed each time.

  • Parameters

    • debug: boolean

      Whether to console.lo or not

    Returns ((...args: any[]) => void)

    Debug printer only the args to print need to be passed to

      • (...args): void
      • Parameters

        • Rest...args: any[]

        Returns void