MCPcopy
hub / github.com/webpack/webpack / compareStrings

Function compareStrings

lib/util/comparators.js:364–368  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

362 * @returns {-1 | 0 | 1} compare result
363 */
364const compareStrings = (a, b) => {
365 if (a < b) return -1;
366 if (a > b) return 1;
367 return 0;
368};
369
370/**
371 * Compares chunk groups by index.

Callers 1

generateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected