2.0.0 • Published 7 years ago

is-js-type v2.0.0

Weekly downloads
46,164
License
MIT
Repository
github
Last release
7 years ago

is-js-type

NPM version Build Status Coverage Status

Code Climate Dependencies DevDependencies

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