$ cnpm install is-js-type
Is string a JS Type
Uses Sindre Sorhus' js-types
npm install --save is-js-type
import isJsType from 'is-js-type';
isJsType('Array');
// => true
isJsType('Error');
// => true
isJsType('array');
// => false
isJsType('dog');
// => false
MIT © Dustin Specker
Copyright 2013 - present © cnpmjs.org | Home |