MCPcopy
hub / github.com/Semantic-Org/Semantic-UI / mirrorProperties

Function mirrorProperties

test/helpers/sinon.js:662–668  ·  view source on GitHub ↗
(target, source)

Source from the content-addressed store, hash-verified

660 }
661
662 function mirrorProperties(target, source) {
663 for (var prop in source) {
664 if (!hasOwn.call(target, prop)) {
665 target[prop] = source[prop];
666 }
667 }
668 }
669
670 function isRestorable (obj) {
671 return typeof obj === "function" && typeof obj.restore === "function" && obj.restore.sinon;

Callers 1

sinon.jsFile · 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…