0.2.0 • Published 5 years ago

is-helper v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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