Skip to content

utilities.Function.truncateString

tgreyuk edited this page Mar 16, 2025 · 7 revisions

github-wiki-example / utilities / truncateString

Function: truncateString()

truncateString(input, maxLength): string

Defined in: utilities.ts:53

Function to truncate a string to a specified length.

Parameters

Parameter Type Description
input string The input string.
maxLength number The maximum length of the truncated string.

Returns

string

The truncated string.

Clone this wiki locally