not-type-of
not-type-of is tool of type checking just reverse for node-modules/is-type-of. It makes conditionals more human-readable when coordination with is-type-of.
Installation
$ npm install not-type-of
Example
var not = ;var is = ; // base example from [is-type-of]not; // => falsenot; // => falsenot; // => truenot; // => falsenot; // => falsenot; // => true // example that not-type-of makes conditionals human-readable var obj0 = ;var obj1 = ;var obj2 = ; if is && not && not console; else if is && not console; else ... ... // create a obj with random type { ...}
API
All reverse from is-type-of:
not.array(arr)
not.boolean(bool)
not.null(null)
not.nullOrUndefined(null)
not.number(num)
not.string(str)
not.symbol(sym)
not.undefined(undef)
not.regExp(reg)
not.object(obj)
not.date(date)
not.error(err)
not.function(fn)
not.primitive(prim)
not.buffer(buf)
not.stream(stream)
not.readableStream(readable)
not.writableStream(writable)
not.duplexStream(duplex)
not.class(obj)
not.finite(num)
not.NaN(NaN)
not.generator(gen)
not.generatorFunction(fn)
not.promise(fn)
not.int(int)
not.double(double)
not.int32(int)
not.long(long)
not.Long(Long)