Simple JavaScript type checking module. Returns a Boolean for each type check.
A super-simple <1KB type checking module for JavaScript that returns a Boolean for each type check.
``js`
axis.isArray([]); // true
axis.isObject({}); // true
axis.isString(''); // true
axis.isDate(new Date()); // true
axis.isRegExp(/test/i); // true
axis.isFunction(function () {}); // true
axis.isBoolean(true); // true
axis.isNumber(1); // true
axis.isNull(null); // true
axis.isUndefined(); // true
``
npm install axis.js
``
bower install https://github.com/toddmotto/axis.git
directory (contains compiled production-ready code). Ensure you place the script before the closing tag.`html`
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Gulp.
- 1.2.1
- Add main in package.json`
- 1.2.0
- Small refactoring
- 1.1.0
- Rewrite to dynamically create functions, thanks jeremenichelli
- 1.0.0
- Initial release