Function
createStack
(stack: string[], label: string | number | Symbol)
Source from the content-addressed store, hash-verified
| 245 | // symbol cannot be used for addition, Symbol can? |
| 246 | // eslint-disable-next-line @typescript-eslint/ban-types |
| 247 | function createStack(stack: string[], label: string | number | Symbol): string[] { |
| 248 | const newStack = stack.slice(); |
| 249 | newStack.push(label + ''); |
| 250 | return newStack; |
| 251 | } |
| 252 | |
| 253 | /** |
| 254 | * Create a (pretty) string from a stack. |
Tested by
no test coverage detected