1.0.17 • Published 7 years ago

@zidadindimon/js-typehelper v1.0.17

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
7 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

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.0

7 years ago