Skip to content

Function: isStringContent()

ts
function isStringContent(value: unknown): value is string;

Checks if a value is a non-empty string

Parameters

ParameterTypeDescription
valueunknownThe value to check

Returns

value is string

True if the value is a non-empty string, false otherwise