Options
All
  • Public
  • Public/Protected
  • All
Menu

Type aliases

Functions

Type aliases

VoidFunction

VoidFunction: function

VoidFunctionList

VoidFunctionList: Record<string, VoidFunction>

Functions

Const debug

A proxy method which uses all console methods but accepts a condition argument which disables it when the condition is truthy. This is useful when you want to enable console statements in development or testing environments but want them disabled in production.

Parameters

  • condition: boolean

    Boolean condition used to enable/disable console methods

Returns VoidFunctionList

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.