https://github.com/venkatperi/what-class
gets the javascript type of an object
https://github.com/venkatperi/what-class
Last synced: 2 months ago
JSON representation
gets the javascript type of an object
- Host: GitHub
- URL: https://github.com/venkatperi/what-class
- Owner: venkatperi
- Created: 2016-05-24T16:58:39.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-24T17:03:57.000Z (about 9 years ago)
- Last Synced: 2025-03-03T04:46:46.569Z (3 months ago)
- Language: CoffeeScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# what-class
Returns the javascript class of an object# Installation
Install with npm.```shell
npm install --save what-class
```# Examples
```coffeescript
jsClass = require 'what-class'jsClass 'abc' # String
jsClass 123 # Number
jsClass [] # Array
jsClass {} # Object
jsClass (->) # Function
jsClass true # Boolean
jsClass new Date() # Date
jsClass /abc/ # RegExp```