@jsmicro/is-boolean
v1.0.2
Published
Check does the given Javascript Object is a boolean.
Downloads
1
Readme
JSMicro - Is Boolean
isBoolean(object)
Check does the given Javascript Object (array, object, string, etc) is a boolean.
isNotBoolean(object)
Check does the given Javascript Boolean (array, object, string, etc) is not a boolean.
Browser Usage
bower install --save jsmicro-is-boolean
<script type="text/javascript" src="bower_components/jsmicro-is-boolean/index.js">
<script type="text/javascript">
var obj = true;
var nbr = 200;
// Available in the window object.
isBoolean(obj); // true
isBoolean(nbr); // false
isNotBoolean(nbr); // true
</script>
NodeJS Usage
npm install --save @jsmicro/is-boolean
const obj = require('@jsmicro/is-boolean');
// Available in the global object.
isBoolean(false); // true
isBoolean(23322333); // false
isNotBoolean(23234); // true
// Also available in the export object.
obj.isBoolean(true); // true
obj.isBoolean(23322333); // false
obj.isNotBoolean(23333); // true
Changelogs
v1.0.1 - May 21, 2016
- Added .npmignore
v1.0.0 - May 19, 2016
- Initial release.