export default class Debug { public static assert ( condition , messageToShowIfNotCondition ? ) { if ( DEBUG ) { if ( ! condition ) { alert ( "Assertion failed: " + messageToShowIfNotCondition ) ; } } } public static fail ( message ) { if ( DEBUG ) { alert ( "DEBUG: " + message ) ; } } public static message ( message ) { if ( DEBUG ) { alert ( "DEBUG: " + message ) ; } } }