MCPcopy
hub / github.com/rchipka/node-osmosis / extend

Function extend

lib/Command.js:427–441  ·  view source on GitHub ↗
(object, donor)

Source from the content-addressed store, hash-verified

425});
426
427function extend(object, donor) {
428 var key, keys = Object.keys(donor),
429 i = keys.length;
430
431 if (object === undefined) {
432 object = {};
433 }
434
435 while (i--) {
436 key = keys[i];
437 object[key] = donor[key];
438 }
439
440 return object;
441}
442
443function runtimeCommand(name, func) {
444 Command.prototype[name] = (function () {

Callers 1

Command.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected