is-helper

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

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

npm i is-helper

Metadata

  • MIT
  • >=8
  • qiurenbo
  • released 7/19/2019

Downloads

Maintainers