Function: truncate()
function truncate(text, max?): string;
Defined in: core/toolLabels.ts:15
Cuts text to max characters, with "…" at the end.
Parameters
| Parameter | Type | Default value |
|---|---|---|
text | string | undefined |
max | number | 60 |
Returns
string
function truncate(text, max?): string;
Defined in: core/toolLabels.ts:15
Cuts text to max characters, with "…" at the end.
| Parameter | Type | Default value |
|---|---|---|
text | string | undefined |
max | number | 60 |
string