MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / createStack

Function createStack

src/shared/utils/ObjectParser.ts:247–251  ·  view source on GitHub ↗
(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
247function 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.

Callers 3

mapMethod · 0.85
arrayMethod · 0.85
propMethod · 0.85

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected