objcheck

1.0.7 • Public • Published

objcheck

Performs detailed Object evaluation to determine Object type.

Functions

What(item)string

Preforms a detailed evaluation to determine an Object type.

Path(item)boolean

Is object a Path

Number(item)boolean

Is object a Number

String(item)boolean

Is object a String

Array(item)boolean

Is object an Array

JSON(item)boolean

Is object a JSON

Boolean(item)boolean

Is object a Boolean

Date(item)boolean

Is object a Date

NamedFunction(item)boolean

Is object a Named Function

RawClass(item)boolean

Is object an non-instantiated Class

NewFunction(item)boolean

Is object an Instantiated Function

NewClass(item)boolean

Is object an Instantiated Class

Function(item)boolean

Is object a Function

Error(item)boolean

Is object an Error

Symbol(item)boolean

Is object a Symbol

Promise(item)boolean

Is object a Promise

Set(item)boolean

Is object a Set

Undefined(item)boolean

Is object a Undefined

Null(item)boolean

Is object a Null

Map(item)boolean

Is object a Map

Generator(item)boolean

Is object a Generator

What(item) ⇒ string

Kind: global function

Preforms a detailed evaluation to determine an Object type.

Objects Evaluated

  • Number: ['[object Number]']
  • String: ['[object String]']
  • Array: ['[object Array]']
  • JSON: ['[object JSON]']
  • Boolean: '[object Boolean]'
  • Date: '[object Date]'
  • NamedFunction: ['[function Raw]']
  • AnonFunction: ['[function Raw]']
  • ArrowFunction: ['[function Arrow]']
  • RawClass: ['[class Raw]']
  • NewFunction: ['[function Instantiated]']
  • NewClass: ['[class Instantiated]']
  • Function: ['[function Arrow]', '[function Raw]', '[class Raw]', '[class Instantiated]']
  • Error: '[object Error]'
  • Symbol: '[object Symbol]'
  • Promise: '[object Promise]'
  • Undefined: '[object Undefined]'
  • Null: '[object Null]'
  • Empty: ['[object Undefined]', '[object Null]']
  • Map: '[object Map]'
  • Generator: '[object Generator]'
  • Set: '[object Set]'

Path(item) ⇒ boolean

Kind: global function

Is object a Path

Package Sidebar

Install

npm i objcheck

Weekly Downloads

3

Version

1.0.7

License

ISC

Unpacked Size

11.3 kB

Total Files

4

Last publish

Collaborators

  • jmathews-shiver