Skip to main content

Function: isString()

isString<T>(value): boolean

Defined in: utilities/is-string.ts:10

Checks if the provided value is a string.

Type Parameters

T

T

Parameters

value

T

The value to check.

Returns

boolean

True if the value is a string, false otherwise.

Example

isString('hello'); // returns true
isString(123); // returns false