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

Method clone

lib/util.js:850–855  ·  view source on GitHub ↗

* Create a snapshot of an Env. * @returns {Env}

()

Source from the content-addressed store, hash-verified

848 * @returns {Env}
849 */
850 clone() {
851 const copy = new Env();
852 copy.lookups = Util.cloneDeep(this.lookups);
853
854 return copy;
855 }
856
857 /**
858 * <p>Initialize a parameter from the command line or process environment</p>

Callers 3

cloneMethod · 0.45
withModuleDefaultsMethod · 0.45
0-util.jsFile · 0.45

Calls 1

cloneDeepMethod · 0.80

Tested by

no test coverage detected