Konnektr Logo

type

Returns the type of the input value as a string.

type

Returns the type of the input value as a string.

Type: transform

Aliases

getType, type

Parameters

  • input (unknown): The value to check the type of.

Returns

Type: string

The type of the input value.

Examples

type(5); // "number"
foo|type; // "string"
type(true); // "boolean"

On this page