MCPcopy
hub / github.com/webpack/webpack / plural

Function plural

lib/stats/DefaultStatsPrinterPlugin.js:45–45  ·  view source on GitHub ↗
(n, singular, plural)

Source from the content-addressed store, hash-verified

43 * @returns {string} if n is 1, singular, else plural
44 */
45const plural = (n, singular, plural) => (n === 1 ? singular : plural);
46
47/**
48 * Returns text.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected