MCPcopy
hub / github.com/webpack/webpack / array

Function array

lib/container/options.js:35–45  ·  view source on GitHub ↗
(items)

Source from the content-addressed store, hash-verified

33 * @param {(string | Item<T>)[]} items items
34 */
35 const array = (items) => {
36 for (const item of items) {
37 if (typeof item === "string") {
38 fn(item, normalizeSimple(item, item));
39 } else if (item && typeof item === "object") {
40 object(item);
41 } else {
42 throw new Error("Unexpected options format");
43 }
44 }
45 };
46 /**
47 * Processes the provided obj.
48 * @param {Item<T>} obj an object

Callers 1

processFunction · 0.85

Calls 2

objectFunction · 0.85
fnFunction · 0.50

Tested by

no test coverage detected