MCPcopy
hub / github.com/webpack/webpack / object

Function object

lib/container/options.js:50–58  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

48 * @param {Item<T>} obj an object
49 */
50 const object = (obj) => {
51 for (const [key, value] of Object.entries(obj)) {
52 if (typeof value === "string" || Array.isArray(value)) {
53 fn(key, normalizeSimple(value, key));
54 } else {
55 fn(key, normalizeOptions(value, key));
56 }
57 }
58 };
59 if (!options) {
60 // Do nothing
61 } else if (Array.isArray(options)) {

Callers 2

arrayFunction · 0.85
processFunction · 0.85

Calls 3

entriesMethod · 0.80
isArrayMethod · 0.80
fnFunction · 0.50

Tested by

no test coverage detected