MCPcopy Index your code
hub / github.com/debug-js/debug / extend

Function extend

src/common.js:149–153  ·  view source on GitHub ↗
(namespace, delimiter)

Source from the content-addressed store, hash-verified

147 }
148
149 function extend(namespace, delimiter) {
150 const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
151 newDebug.log = this.log;
152 return newDebug;
153 }
154
155 /**
156 * Enables a debug mode by namespaces. This can include modes

Callers

nothing calls this directly

Calls 1

createDebugFunction · 0.85

Tested by

no test coverage detected