@jamesarlow/isit
v0.0.1
Published
A type differentiator for JS primitives, literals, and type hierarchies.
Downloads
2
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 notAornew AisPlainObject: i.e.isObjectand!isPrototypeisClass: i.e. A function with a prototype (not anonymous)isPlainFunction: i.e. A function without a prototype (anonymous)
Installation
npm install @jamesarlow/isit
