MCPcopy Index your code
hub / github.com/extrabacon/python-shell / extend

Function extend

index.ts:21–30  ·  view source on GitHub ↗

* adds arguments as properties to obj

(obj: {}, ...args)

Source from the content-addressed store, hash-verified

19 * adds arguments as properties to obj
20 */
21function extend(obj: {}, ...args) {
22 Array.prototype.slice.call(arguments, 1).forEach(function (source) {
23 if (source) {
24 for (let key in source) {
25 obj[key] = source[key];
26 }
27 }
28 });
29 return obj;
30}
31
32/**
33 * gets a random int from 0-10000000000

Callers 2

constructorMethod · 0.85
terminateIfNeededMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…