npm

Join us for the upcoming webinar, "Enterprise JavaScript done right: the tools you love, the security you need."Sign up here »

jsmicro-is-object

1.0.1 • Public • Published

JSMicro - Is Object

isObject(object)

Check does the given Javascript Object (array, object, string, etc) is an object.

isNotObject(object)

Check does the given Javascript Object (array, object, string, etc) is not an object.

Browser Usage

bower install --save jsmicro-is-object
<script type="text/javascript" src="bower_components/jsmicro-is-object/index.js">
<script type="text/javascript">
    var obj = {};
    var nbr = 200;
 
    // Available in the window object.
    isObject(obj);      // true
    isObject(nbr);      // false
    isNotObject(nbr);   // true
</script> 

NodeJS Usage

npm install --save jsmicro-is-object
const obj = require('jsmicro-is-object');
 
// Available in the global object.
isObject({}); // true
isObject(23322333); // false
isNotObject(23234); // true
 
// Also available in the export object.
obj.isObject({}); // true
obj.isObject(23322333); // false
obj.isNotObject(23333); // true

Changelogs

v1.0.1 - May 21, 2016

  • Added .npmignore

v1.0.0 - May 19, 2016

  • Initial release.

The MIT License (MIT)

install

npm i jsmicro-is-object

Downloadsweekly downloads

5

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability