Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 362 Bytes

pipes.md

File metadata and controls

21 lines (16 loc) · 362 Bytes

Pipes

FormatCostRangePipe

classDiagram
  direction LR
  class CostRange {
    +min: number
    +max: number
  }

  class FormatCostRangePipe {
    +transform(range: CostRange) string
  }

  FormatCostRangePipe ..> CostRange
Loading

Takes in a CostRange and outputs a string representation of it in dollars, with compact notation ie.
$500 - $1K