MCPcopy
hub / github.com/webpack/webpack / normalizeFieldKey

Function normalizeFieldKey

lib/stats/DefaultStatsFactoryPlugin.js:2542–2547  ·  view source on GitHub ↗
(field)

Source from the content-addressed store, hash-verified

2540 * @returns {field} normalized field
2541 */
2542const normalizeFieldKey = (field) => {
2543 if (field[0] === "!") {
2544 return field.slice(1);
2545 }
2546 return field;
2547};
2548
2549// if a field is prefixed by a "!" reverse sort order
2550/**

Callers 1

sortByFieldFunction · 0.85

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected