1. is-js-type
Is string a JS Type
is-js-type
Package: is-js-type
Created by: dustinspecker
Last modified: Sun, 19 Jun 2022 02:44:17 GMT
Version: 2.0.0
License: MIT
Downloads: 725,677
Repository: https://github.com/dustinspecker/is-js-type

Install

npm install is-js-type
yarn add is-js-type

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

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code