MCPcopy
hub / github.com/flowjs/flow.js / extend

Function extend

src/flow.js:1583–1592  ·  view source on GitHub ↗

* Extends the destination object `dst` by copying all of the properties from * the `src` object(s) to `dst`. You can specify multiple `src` objects. * @function * @param {Object} dst Destination object. * @param {...Object} src Source object(s). * @returns {Object} Reference to `dst`.

(dst, src)

Source from the content-addressed store, hash-verified

1581 * @returns {Object} Reference to `dst`.
1582 */
1583 function extend(dst, src) {
1584 each(arguments, function(obj) {
1585 if (obj !== dst) {
1586 each(obj, function(value, key){
1587 dst[key] = value;
1588 });
1589 }
1590 });
1591 return dst;
1592 }
1593 Flow.extend = extend;
1594
1595 /**

Callers 1

flow.jsFile · 0.85

Calls 1

eachFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…