Chain conditions to the console
object, like so:
console.and(1 === 1).log('This is logged');
console.and(1 !== 1).log('This is not');
Just include the js and it will decorate the console
object with the condition functions.
<script src="conditionalConsole.js"></script>
Check out the examples.html
of how to use Conditional Console.
- JSdoc.
- Depending on jsdoc quality list all functions in README.md.