Cutie extension for checking types in JavaScript.


171.1.32 years ago3 years agoMinified + gzip package size for @cuties/is in KB



NPM Version Build Status codecov

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


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


npm install @cuties/is

Run test

npm test

Run build

npm run build


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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.