Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

get-the-type

putilov8ISC1.0.2

Get the native type of a value.

get type, type, types, typeof, typeof array

readme

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