All files / src/pages/flowsheet-page/economics/cost-curves/library labels.ts

75% Statements 3/4
0% Branches 0/1
100% Functions 0/0
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6  4x 4x 4x    
export function formatCostCurveLabel(value?: string | null) {
  Iif (!value) return "-";
  const label = value.replace(/_/g, " ");
  return label.charAt(0).toUpperCase() + label.slice(1);
}