Function
formatCost
(input?: number, output?: number)
Source from the content-addressed store, hash-verified
| 217 | } |
| 218 | |
| 219 | function formatCost(input?: number, output?: number) { |
| 220 | if (input === undefined && output === undefined) return undefined; |
| 221 | const inputText = input === undefined ? "-" : `$${input.toFixed(2)}`; |
| 222 | const outputText = output === undefined ? "-" : `$${output.toFixed(2)}`; |
| 223 | return `${inputText} / ${outputText}`; |
| 224 | } |
| 225 | |
| 226 | function appendHighlightedText( |
| 227 | element: HTMLElement, |
Tested by
no test coverage detected