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

Function extend

lib/parallel.js:14–20  ·  view source on GitHub ↗
(from, to)

Source from the content-addressed store, hash-verified

12 const _supports = !!(isNode || self.Worker); // node always supports parallel
13
14 function extend(from, to) {
15 if (!to) to = {};
16 for (const i in from) {
17 if (to[i] === undefined) to[i] = from[i];
18 }
19 return to;
20 }
21
22 function Operation() {
23 this._callbacks = [];

Callers 2

ParallelFunction · 0.85
parallel.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected