Skip to content

utils.Utils.Function.getTypeName

Christian d'Heureuse edited this page Nov 16, 2026 · 1 revision

tedious-plus / utils/Utils / getTypeName

Function: getTypeName()

function getTypeName(value): string;

Defined in: utils/Utils.ts:61

Returns the name of the data type of a value, for use in error messages.

For objects, the name of the constructor is returned (e.g. "Date"), or "object" if there is none. For other values, the result of typeof is returned.

Parameters

value

unknown

Returns

string

Clone this wiki locally