1.0.2 • Published 5 years ago

@mesaquen/isit v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@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
1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago