@jamesarlow/isit
v0.0.1
Published
A type differentiator for JS primitives, literals, and type hierarchies.
Downloads
1
Readme
@ jamesarlow/isit
A type tester for fundamental javascript.
Overview
Isit is a simple utility class which provides static methods to test essential type information about javascript values.
Test Fundamental Types
- isArray
- isFunction
- isString
- isNumeric
Differentiate Hierarchy from Instance
isObject
: i.e. none-of-the-aboveisPrototype
: i.e.A.prototype
, but notA
ornew A
isPlainObject
: i.e.isObject
and!isPrototype
isClass
: i.e. A function with a prototype (not anonymous)isPlainFunction
: i.e. A function without a prototype (anonymous)
Installation
npm install @jamesarlow/isit