New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@cuties/is

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cuties/is

Cutie extension for checking types in JavaScript.

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

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 ObjectAsync/sync callParametersRepresentation result
Isvalue instanceof clazzvalue, clazzboolean
IsArrayArray.isArrayvalueboolean
IsBooleantypeof value === 'boolean'valueboolean
IsDatevalue instanceof Datevalueboolean
IsFunctiontypeof value === 'function'valueboolean
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

Keywords

cutie

FAQs

Package last updated on 10 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts