@cat5th/is
TypeScript icon, indicating that this package has built-in type declarations

0.1.9 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @cat5th/is

Weekly Downloads

2

Version

0.1.9

License

MIT

Unpacked Size

441 kB

Total Files

56

Last publish

Collaborators

  • alphmega