Skip to content

harvey-woo/is

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 21, 2018
bdd0f75 · Nov 21, 2018

History

25 Commits
Nov 21, 2018
Nov 21, 2018
Nov 6, 2018
Nov 6, 2018
Nov 19, 2018
Nov 19, 2018
Nov 7, 2018
Nov 6, 2018
Nov 8, 2018
Nov 21, 2018
Nov 21, 2018
Nov 21, 2018
Nov 16, 2018
Nov 7, 2018
Nov 7, 2018

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