Simple dev tool for printing information and warnings to console
lib.print
Print some information to the console
Parameter
Type
Required
Description
_type
String
Type of print - info, warn, error or debug
...
Any
Debug info
lib.addPrintType
Add a new of print to be used
Parameter
Type
Required
Description
_type
String
Unique print type
prefix
String
What should be prefixed in front of the debug
condition
Function
Callback to check if it should print
Last updated