1.0.2 • Published 3 years ago
get-the-type v1.0.2
Get the type
Get the native type of a value.
| getType(something) | Result |
|---|---|
| 5 | number |
| 'Some string' | string |
| false | boolean |
| null | null |
| undefined | undefined |
| {} | object |
| Symbol() | symbol |
| [] | array |
| new Date() | date |
| /.*/ | regexp |
| function(){} | function |