Skip to content

harvey-woo/is

Repository files navigation

is

a micro type check lib, provides some common types of detection methods

documentation

npm version coverage npm downloads Build Status

How to Use

Installation

npm i @cat5th/is

Import the function you need

import { type, isPlainObject } from '@cat5th/is'

Enjoy it

import {type, isPlainObject, isEqual } from '@cat5th/is' 
type(1) // => 'number'
isPlainObject({}) // => true
isEqual({a: 1}, {a: 1}) // => true

@cat5th/is provides various functions such as

  • is
  • isArrayLike
  • isEqual
  • isPlainObject
  • isPrimitive
  • ...
  • you can post issus if you have any good idea of feature

You can check it out from the documentation