MCPcopy Create free account
hub / github.com/angular/components / formatScore

Function formatScore

docs/tools/lighthouse-audit.mjs:128–130  ·  view source on GitHub ↗

* @param {number} score * @returns {string} the formatted audit score value

(score)

Source from the content-addressed store, hash-verified

126 * @returns {string} the formatted audit score value
127 */
128function formatScore(score) {
129 return `${(score * 100).toFixed(0).padStart(3)}`;
130}
131
132/**
133 * @param url the URL to run Lighthouse against

Callers 1

processResultsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected