1.2.0 • Published 1 year ago
checksjs v1.2.0
Checks.js
This is a node package that contains helper functions for validating data in JavaScript. The functions that start with is return a bool and those that start with checkIf throw an error. See 'core' for reference.
Example:
const checks = require('checksjs');
checks.isFunction(arg);
// OR
checks.checkIfFunction(arg1, ...);
Note: not all of the helpers start with 'is' or 'checkIf'. Please see core/README.md for more info.