npm.io
0.2.0 • Published 7 years ago

is-helper

Licence
MIT
Version
0.2.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0

is-helpernpm versionBuild Status

is-helper help me to identify the type of unknown.

Install

$ npm install is-helper

Usage

const is = require("is-helper");

is.isString("hello world"); // => true

is.isNumber(123); // => true

is.isBoolean(false); // => true

is.isObject({}); // => true

is.isObject(null); // => true

is.isUndefined(undefined); // => true

is.isArray([1, 2, 3, 4, 5]); // => true

API

isType(unknown)
unknown

Type: any

return

Type: boolean

Keywords