MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / buildLabel

Function buildLabel

src/app/logger/logger.ts:14–24  ·  view source on GitHub ↗
(...label: LogLabel[][])

Source from the content-addressed store, hash-verified

12};
13
14function buildLabel(...label: LogLabel[][]): LogLabel {
15 const ret: LogLabel = {};
16 label.forEach((item) => {
17 item.forEach((item2) => {
18 Object.keys(item2).forEach((key) => {
19 ret[key] = item2[key];
20 });
21 });
22 });
23 return ret;
24}
25
26export default class Logger {
27 core: LoggerCore;

Callers 1

logMethod · 0.85

Calls 2

forEachMethod · 0.80
keysMethod · 0.80

Tested by

no test coverage detected