This package has been deprecated

Author message:

Deprecated, please use @langurama/checker instead.

@langurama/type-check
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-rc5 • Public • Published

@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).

Dependencies (0)

    Dev Dependencies (9)

    Package Sidebar

    Install

    npm i @langurama/type-check

    Weekly Downloads

    0

    Version

    1.0.0-rc5

    License

    MIT

    Unpacked Size

    10.8 kB

    Total Files

    6

    Last publish

    Collaborators

    • basickarl