

Documentation, Installation, and Usage Instructions
This package is a wrapper for oslllo-validator therefore shares the same documentaion with it.
See the full installation and usage documentation HERE.
The Objective
Create an all in one Javascript validator that throws an exception
on false
.
The Problem / Why This Was Created
It was requested HERE
Usage Examples
Check if value is actual NaN
const assert = require("oslllo-validator-exception");
assert.actualNaN(NaN);
assert.actualNaN(null);
assert.actualNaN(undefined);
Check if value is actual NaN but throw an exception with a custom message on false
const assert = require("oslllo-validator-exception");
assert.actualNaN(null, assert.msg("Invalid UUID"));
Return false
instead
If you want to return false
instead of an exception
then check out oslllo-validator
HERE
