MCPcopy
hub / github.com/webpack/webpack / mergeToObject

Function mergeToObject

lib/stats/DefaultStatsFactoryPlugin.js:2721–2727  ·  view source on GitHub ↗
(items)

Source from the content-addressed store, hash-verified

2719 * @returns {NamedObject<T>} an object
2720 */
2721const mergeToObject = (items) => {
2722 const obj = Object.create(null);
2723 for (const item of items) {
2724 obj[item.name] = item;
2725 }
2726 return obj;
2727};
2728
2729/**
2730 * @template {{ name: string }} T

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected