npm.io
6.0.0-alpha.3 • Published 2 years ago

@guanghechen/helper-is

Licence
MIT
Version
6.0.0-alpha.3
Deps
0
Size
37 kB
Vulns
0
Weekly
0
Stars
4

@guanghechen/helper-is


Utilities to detect data type.

Install

  • npm

    npm install --save-dev @guanghechen/helper-is
  • yarn

    yarn add --dev @guanghechen/helper-is

Usage

Name Description
isArray Check if the given data is a Array type
isBigint Check if the given data is a bigint type
isBoolean Check if the given data is a boolean / Boolean type
isDate Check if the given data is a Date type
isFunction Check if the given data is a Function type
isInteger Check if the given data is a Integer type
isNumber Check if the given data is a number / Number type
isObject Check if the given data is a Object type
isString Check if the given data is a string / String type
isSymbol Check if the given data is a symbol type
isUndefined Check if the given data is a undefined type
isPlainObject Check if the given value is a plain object.
isPrimitiveBoolean Check if the given data is a boolean type
isPrimitiveInteger Check if the given data is a integer type
isPrimitiveNumber Check if the given data is a number type
isPrimitiveString Check if the given data is a string type
isNonBlankString Check if the given data is an non-blank string / String type
isNotEmptyArray Check if the given data is an not-empty Array type
isNotEmptyObject Check if the given data is an not-empty Object type
isEmptyObject Check if the given data is an empty Object type
isNumberLike Check if the given data is an number / Number or number like string type

Keywords