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