utilities.Function.truncateString - typedoc2md/typedoc-plugin-markdown-examples GitHub Wiki

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.