MCPcopy Create free account
hub / github.com/adobe/react-spectrum / signed

Function signed

perf/confirm.mjs:85–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83
84export function summarizeConfirmation(original, originalDir, experiments, ids) {
85 let signed = value => {
86 let digits = Math.abs(value).toFixed(2);
87 // Values that round to zero get no minus sign.
88 return `${value < 0 && digits !== '0.00' ? '−' : '+'}${digits} ms`;
89 };
90 let cell = comparison =>
91 `${signed(comparison.delta)}${comparison.interval ? ` [${comparison.interval.map(signed).join(', ')}]` : ''} ${comparison.verdict}`;
92 let {options} = original;

Callers 1

cellFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected