MCPcopy
hub / github.com/webpack/webpack / mapLines

Function mapLines

lib/stats/DefaultStatsPrinterPlugin.js:111–111  ·  view source on GitHub ↗
(str, fn)

Source from the content-addressed store, hash-verified

109 * @returns {string} joined string
110 */
111const mapLines = (str, fn) => str.split("\n").map(fn).join("\n");
112
113/**
114 * Returns number as two digit string, leading 0.

Callers 1

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected