2.0.0 • Published 7 years ago
is-js-type v2.0.0
is-js-type
Is string a JS Type
Uses Sindre Sorhus' js-types
Install
npm install --save is-js-type
Usage
ES2015
import isJsType from 'is-js-type';
isJsType('Array');
// => true
isJsType('Error');
// => true
isJsType('array');
// => false
isJsType('dog');
// => false
ES5
var isJsType = require('is-js-type');
isJsType('Array');
// => true
isJsType('Error');
// => true
isJsType('array');
// => false
isJsType('dog');
// => false
LICENSE
MIT © Dustin Specker