1.0.2 • Published 5 years ago
@mesaquen/isit v1.0.2
@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'); // false
Available methods
number
string
boolean
undefined
null
undefinedOrNull