is-obj-type
Good judgment of object type.
install
$ npm install --save isType
Example
const is = ;console; var { //...}var obj = ;var isSome = ;console; {};var someObj = ;var isSomeCls = ;console; var isSomeOrCls = isall"some""someCls";console;console;
output
true // x5
Usage
const is = ;
Standard object
is; // => trueis; // => trueis; // => trueis; // => trueis; // => trueis; // => trueis; // => trueisundefinedundefined; // => trueis; // => trueis; // Browseris; // Node
Plain object pair object
is // => falseis // => falseis// => true
Custom class
var {};var sObj = ;var isSome = ;;// => true {};var clsObj = ;var isSomecls = ;;// => true
mulit condition
var isSomeOrCls = isall"some""somecls";;// => true;// => true
Advanced
Function Class overloading
// ...
About
*npm(new release) need to pull dev-lib with cmd
npm i --only=dev
browserify
$ npm run browserify
test
$ npm run test