JSPM

jsmicro-is-boolean

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q27410F
  • License MIT

Check does the given Javascript Object is a boolean.

Package Exports

  • jsmicro-is-boolean

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jsmicro-is-boolean) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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.

The MIT License (MIT)