MCPcopy Create free account
hub / github.com/node-config/node-config / clone

Method clone

lib/util.js:996–1001  ·  view source on GitHub ↗

* Create a snapshot of a Load instance * @returns {Load}

()

Source from the content-addressed store, hash-verified

994 * @returns {Load}
995 */
996 clone() {
997 const newEnv = this.env.clone();
998 const copy = new Load(this.options, newEnv);
999
1000 return Util.extendDeep(copy, this);
1001 }
1002
1003 /**
1004 * <p>Initialize a parameter from the command line or process environment</p>

Callers

nothing calls this directly

Calls 2

extendDeepMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected