Get Type

Get the precise type of any value.

Code

General
Object.prototype.toString.call(value).slice(8, -1);

Parameters

Value to check type

Browser·fetch() may be limited by CORS

More JavaScript Snippets