Skip to content

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 ​

ParameterTypeDefault value
stackstring | undefinedundefined
linesnumber4
maxnumber600

Returns ​

string

Released under the MIT License.