@cuties/is
Cutie extension for checking types in JavaScript.
Last updated a year ago by guseyn .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @cuties/is 
SYNC missed versions from official npm registry.

cutie-is

NPM Version Build Status codecov

Cutie extension for checking types in JavaScript. It's based on the Async Tree Pattern.

Examples

You can find examples of using this library in the test directory.

Install

npm install @cuties/is

Run test

npm test

Run build

npm run build

Usage

const {
  // Here needed async objects from the table below
} = require('@cuties/is');
Async Object Async/sync call Parameters Representation result
Is value instanceof clazz value, clazz boolean
IsArray Array.isArray value boolean
IsBoolean typeof value === 'boolean' value boolean
IsDate value instanceof Date value boolean
IsFunction typeof value === 'function' value boolean
IsNull typeof value === null value boolean
IsNumber typeof value === 'number' value boolean
IsObject typeof value === 'object' value boolean
IsRealObject typeof value === 'object' && value !== null value boolean
IsString typeof value === 'string' value boolean
IsSymbol typeof value === 'symbol' value boolean
IsUndefined typeof value === 'undefined' value boolean

Current Tags

  • 1.1.3                                ...           latest (a year ago)

15 Versions

  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           2 years ago
  • 1.0.14                                ...           2 years ago
  • 1.0.13                                ...           2 years ago
  • 1.0.12                                ...           2 years ago
  • 1.0.11                                ...           2 years ago
  • 1.0.10                                ...           2 years ago
  • 1.0.9                                ...           2 years ago
  • 1.0.8                                ...           2 years ago
  • 1.0.7                                ...           2 years ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago

Copyright 2014 - 2016 © taobao.org |