@mesaquen/isit
v1.0.2
Published
Simple javascript library to type test any given value
Readme
@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
oryarn add @mesaquen/isit
Usage
import isIt from '@mesaquen/isit';
...
isIt.number(5); // true
isIt.undefined('some text'); // falseAvailable methods
numberstringbooleanundefinednullundefinedOrNull
