Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dustinspecker/is-js-type
Is string a JS Type
https://github.com/dustinspecker/is-js-type
Last synced: 16 days ago
JSON representation
Is string a JS Type
- Host: GitHub
- URL: https://github.com/dustinspecker/is-js-type
- Owner: dustinspecker
- License: mit
- Created: 2015-11-01T01:09:37.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2024-06-11T13:07:01.000Z (5 months ago)
- Last Synced: 2024-10-12T12:31:28.676Z (27 days ago)
- Language: JavaScript
- Size: 27.3 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# is-js-type
[![NPM version](https://badge.fury.io/js/is-js-type.svg)](https://badge.fury.io/js/is-js-type) [![Coverage Status](https://img.shields.io/coveralls/dustinspecker/is-js-type.svg)](https://coveralls.io/r/dustinspecker/is-js-type?branch=main)[![Code Climate](https://codeclimate.com/github/dustinspecker/is-js-type/badges/gpa.svg)](https://codeclimate.com/github/dustinspecker/is-js-type)
> Is string a JS Type
**Uses [Sindre Sorhus](https://github.com/sindresorhus)' [js-types](https://github.com/sindresorhus/js-types)**
## Install
```
npm install --save is-js-type
```## Usage
### ES2015
```javascript
import isJsType from 'is-js-type';isJsType('Array');
// => trueisJsType('Error');
// => trueisJsType('array');
// => falseisJsType('dog');
// => false
```## LICENSE
MIT © [Dustin Specker](https://github.com/dustinspecker)