fl-assert
Simple assertion functions to throw errors in the code.
Read the DOCS
Usage
Use it like this:
const myCollection = 1 2;; // Nothing happens; // Throws the string passed as an error messageassert; // Nothing happensassert; // Logs a warning with the string passed as the warning message
ES6
The main file in the dist folder is an ES6 module, and it is specified as such, so you can just write this line below start rocking.
Install
Bower
npm install --save-dev fl-assert