check-typeof
Npm package to checks the variable type is an array or object or string or number or boolean or undefined
Installation
Installation is easiest through npm:
npm install check-typeof --save
Usage
var $ = ; if $ //if true //your code if $ //if true //your code if $ //if true //your code if $ //if true //your code if $ //if true //your code if $ //if true //your code