1.0.17 • Published 6 years ago

@zidadindimon/js-typehelper v1.0.17

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
6 years ago

TypeHelper

Simple helper for check js type

Install

npm i @zidadindimon/js-typehelper

Usage

check type example:

import TypeHelper from "@zidadindimon/js-typehelper"
...
let data = [];
TypeHelper.isArray(data) // return true
TypeHelper.isObject(data) //return false

get type example:

import TypeHelper, {TYPE} from "@zidadindimon/js-typehelper"
TypeHelper.getType(data) //return  TYPE.ARRAY

check data is empty:

import TypeHelper from "@zidadindimon/js-typehelper"
TypeHelper.isEmpty({}) //return true
TypeHelper.isEmpty([]) //return true
1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago