Skip to content

mesaquen/mzk-isit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

@mesaquen/isit

Javascript library to easy test type of an value.
Returns true if the type of the given value matches the expected, otherwise false.

Install

npm i --save @mesaquen/isit
or
yarn add @mesaquen/isit

Usage

import isIt from '@mesaquen/isit';

...

isIt.number(5); // true
isIt.undefined('some text'); // false

Available methods

  • number
  • string
  • boolean
  • undefined
  • null
  • undefinedOrNull

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published