1681-engine / index / trimStack
Function: trimStack() ​
ts
function trimStack(
stack,
lines?,
max?
): string;Defined in: src/diagnostics/ErrorDeduper.ts:28
The first lines lines of a stack, at most max characters.
Parameters ​
| Parameter | Type | Default value |
|---|---|---|
stack | string | undefined | undefined |
lines | number | 4 |
max | number | 600 |
Returns ​
string