@creatrixlb/typeofdata
v0.0.30
Published
get the type string javascript
Downloads
3
Readme
typeofdata
get the type string javascript
example
yarn add @creatrix/typeofdata<br />
npm i @creatrix/typeofdata
import {isNotEmpty,isArray,isArrayCount,isObject,isFunction,isBoolean,isObject, etc....} from @creatrix/typeofdata;
const var1=null;<br />
const var2=undefined; <br />
const var3="demo string";<br />
const var4=[];<br />
const var5={id:1};<br />
const var6=()=>{};<br />
isNotEmpty(var1) //false<br />
isNotEmpty(var2) //false<br />
isNotEmpty(var3) //true<br />
isArray(var4) //true<br />
isArrayCount(var4) //false<br />
isArray(var1) //false<br />
isArray(var2) //false<br />
isArray(var3) //true<br />