12 lines
		
	
	
		
			260 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			260 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
| function debug(logLevel, ...messages) {
 | |
|     if (logLevel === 'debug')
 | |
|         console.log(...messages);
 | |
| }
 | |
| function warn(logLevel, warning) {
 | |
|     if (logLevel === 'debug' || logLevel === 'warn') {
 | |
|         console.warn(warning);
 | |
|     }
 | |
| }
 | |
| 
 | |
| export { debug, warn };
 |