typechecker

Utilities to get and check variable types (isString, isPlainObject, isRegExp, etc)

TypeChecker

Utilities to get and check variable types (isString, isPlainObject, isRegExp, etc)

  1. Install Node.js
  2. npm install --save typechecker
  1. See Browserify
require('typechecker').isRegExp(/^a/)
  • getObjectType (e.g. [object RegExp])
  • getType (e.g. regexp)
  • isPlainObject (checks for no custom prototype)
  • isError
  • isDate
  • isArguments
  • isFunction
  • isRegExp
  • isArray
  • isNumber
  • isString
  • isBoolean
  • isNull
  • isUndefined
  • isEmpty (checks for null or undefined)
  • isEmptyObject (checks for no keys that are its own)

You can discover the history inside the History.md file

Licensed under the incredibly permissive MIT License
Copyright © 2013+ Bevry Pty Ltd us@bevry.me
Copyright © 2011-2012 Benjamin Arthur Lupton