/is-lite

A tiny javascript type testing tool

Primary LanguageJavaScriptMIT LicenseMIT

is-lite

NPM version build status Maintainability Test Coverage

Get the type of a value

Setup

npm install is-lite

Usage

import is from 'is-lite';

const value = '';

is.object(value) -> false;

API

is.null

is.undefined

is.nullOrUndefined

is.string

is.number

is.function

is.boolean

is.array

is.object (objects, functions and arrays)

is.plainObject (just objects)

is.date

is.promise

is.iterable

is.generator

is.regexp

is.symbol

is.domElement