Skip to content

[Deprecated] Retardedly basic type checking for Node.js and the browser.

License

Notifications You must be signed in to change notification settings

langurama/type-check

Repository files navigation

Deprecated, please use https://github.com/langurama/checker instead.

@langurama/type-check

Build Coverage Version License

Due to the retardedness of JavaScript not including proper type checking mechanisms this library was born out of fire and glory. This package is made for Node.js and the browser.

Contents.

Install

npm install --save-prod --save-exact @langurama/type-check

Usage

<LanguramaTypeCheck>

array(object)

  • object <any>
  • Returns: <boolean>

asyncFunction(object)

  • object <any>
  • Returns: <boolean>

bigint(object)

  • object <any>
  • Returns: <boolean>

boolean(object)

  • object <any>
  • Returns: <boolean>

date(object)

  • object <any>
  • Returns: <boolean>

error(object)

  • object <any>
  • Returns: <boolean>

function(object)

  • object <any>
  • Returns: <boolean>

generatorFunction(object)

  • object <any>
  • Returns: <boolean>

nan(object)

  • object <any>
  • Returns: <boolean>

null(object)

  • object <any>
  • Returns: <boolean>

number(object)

  • object <any>
  • Returns: <boolean>

object(object)

  • object <any>
  • Returns: <boolean>

promise(object)

  • object <any>
  • Returns: <boolean>

string(object)

  • object <any>
  • Returns: <boolean>

symbol(object)

  • object <any>
  • Returns: <boolean>

undefined(object)

  • object <any>
  • Returns: <boolean>

Example

You may check the example/ directory for runnable example files.

How it works

This package transpiles code to CommonJS via Babel targeted at the current Node.js LTS version. To use this in the browser you will need to transpile it from CommonJS to your targeted browser(s).

About

[Deprecated] Retardedly basic type checking for Node.js and the browser.

Resources

License

Stars

Watchers

Forks

Packages

No packages published