JSPM

typechecker

2.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 236406
  • Score
    100M100P100Q159313F

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

Package Exports

  • typechecker

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 (typechecker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

TypeChecker Build Status

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

Install

Backend

  1. Install Node.js
  2. npm install --save typechecker

Frontend

  1. See Browserify

Usage

Example

require('typechecker').isRegExp(/^a/)

Available Methods

  • 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)

History

You can discover the history inside the History.md file

License

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