Package Exports
- is-type-of
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 (is-type-of) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
is-type-of
complete type checking for node, extend core-util-is
dependencies:
Install
npm install is-type-ofExample
var is = require('is-type-of');
is.array([1]); // => true
is.primitive(true); // => true
is.primitive({}); // => false
is.generatorFunction(function * () {}); // => true
is.long(Math.pow(2, 33)); // => true
is.double(0); // => falseAPI
From core-util-is
is.array(arr)
is.boolean(bool)
is.null(null)
is.nullOrUndefined(null)
is.number(num)
is.string(str)
is.symbol(sym)
is.undefined(undef)
is.regExp(reg)
is.object(obj)
is.date(date)
is.error(err)
is.function(fn)
is.primitive(prim)
is.buffer(buf)
from is-stream
is.stream(stream)
is.readableStream(readable)
is.writableStream(writable)
is.duplexStream(duplex)
Extend API
is.NaN(NaN)
is.generator(gen)
is.generatorFunction(fn)
is.promise(fn)
is.int(int)
is.double(double)
is.int32(int)
is.long(long)
is.Long(Long)
- Support Long instance.
License
MIT