Skip to content

BirkAndMe/ConditionalConsole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConditionalConsole

Chain conditions to the console object, like so:

console.and(1 === 1).log('This is logged');
console.and(1 !== 1).log('This is not');

Installation

Just include the js and it will decorate the console object with the condition functions.

<script src="conditionalConsole.js"></script>

Usage

Check out the examples.html of how to use Conditional Console.

TODO

  • JSdoc.
  • Depending on jsdoc quality list all functions in README.md.