Skip to content

utilities.Function.truncateString

tgreyuk edited this page Sep 6, 2024 · 6 revisions

github-wiki-example / utilities / truncateString

Function: truncateString()

truncateString(input, maxLength): string

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.

Defined in

utilities.ts:53

Clone this wiki locally