Skip to content

Function: kindOf()

kindOf(val): string

Defined in: types.ts:337

Determines the type of a given value.

This function attempts to identify the underlying type of a JavaScript value using a combination of checks and built-in functions.

Parameters

val

any

The value to determine the type for.

Returns

string

string - A string representing the type of the value (e.g., "undefined", "string", "array", etc.).

Released under the MIT License.