Skip to content

UtilitiesModule.Function.truncateString

tgreyuk edited this page Apr 25, 2024 · 1 revision

github-wiki-example / UtilitiesModule / 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.

Source

utilities.ts:53

Clone this wiki locally