MCPcopy
hub / github.com/webpack/webpack / key

Method key

lib/serialization/PlainObjectSerializer.js:43–50  ·  view source on GitHub ↗

* Returns object structure. * @param {keyof T} key key * @returns {ObjectStructure<T>} object structure

(key)

Source from the content-addressed store, hash-verified

41 * @returns {ObjectStructure<T>} object structure
42 */
43 key(key) {
44 if (this.children === undefined) this.children = new Map();
45 const child = this.children.get(key);
46 if (child !== undefined) return child;
47 const newChild = new ObjectStructure();
48 this.children.set(key, newChild);
49 return newChild;
50 }
51}
52
53/**

Callers 1

getCachedKeysFunction · 0.80

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected