MCPcopy
hub / github.com/webpack/webpack / itemsJoinCommaBracketsWithName

Function itemsJoinCommaBracketsWithName

lib/stats/DefaultStatsPrinterPlugin.js:1161–1164  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

1159 items.length > 0 ? `(${items.filter(Boolean).join(", ")})` : undefined;
1160/** @type {(item: string) => SimpleItemsJoiner} */
1161const itemsJoinCommaBracketsWithName = (name) => (items) =>
1162 items.length > 0
1163 ? `(${name}: ${items.filter(Boolean).join(", ")})`
1164 : undefined;
1165
1166/** @type {Record<string, SimpleItemsJoiner>} */
1167const SIMPLE_ITEMS_JOINER = {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected