1.0.5 • Published 6 years ago

@guseyn/cutie-is v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

cutie-is

Cutie extension for checking types in JavaScript.

cutie-assert

NPM Version

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.

Usage

const {
  // Here needed async objects from the table below
} = require('@cuties/is');
Async ObjectAsync/sync callParametersRepresentation result
Isvalue instanceof clazzvalue, clazzboolean
IsArrayArray.isArrayvalueboolean
IsBooleantypeof value === 'boolean'valueboolean
IsDatetypeof value instanceof Datevalueboolean
IsNulltypeof value === nullvalueboolean
IsNumbertypeof value === 'number'valueboolean
IsObjecttypeof value === 'object'valueboolean
IsRealObjecttypeof value === 'object' && value !== nullvalueboolean
IsStringtypeof value === 'string'valueboolean
IsSymboltypeof value === 'symbol'valueboolean
IsUndefinedtypeof value === 'undefined'valueboolean