Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 502 Bytes

File metadata and controls

24 lines (16 loc) · 502 Bytes

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.