@tight/is-type
v1.1.0
Published
Type checkers
Downloads
105
Readme
JavaScript type checkers
Installation
yarn add @tight/is-type
Usage
import {
isArray,
isBoolean,
isFunction,
isNull,
isNumber,
isObject,
isString,
isUndefined
} from '@tight/is-type';
isArray([]); // true
isBoolean(true); // true
isFunction(() => {}); // true
isNull(null); // true
isNumber(1); // true
isObject({}); // true
isString('string'); // true
isUndefined(); // true