Skip to content

truncate

function truncate(text, max): string;

Defined in: src/ui/format.ts:91

Truncate with an ellipsis; never longer than max characters (including the ellipsis).

Parameter Type
text string
max number

string