(p: OHLCDataPoint)
| 20 | const isTupleDataPoint = (p: OHLCDataPoint): p is OHLCDataPointTuple => Array.isArray(p); |
| 21 | |
| 22 | const getTimestamp = (p: OHLCDataPoint): number => (isTupleDataPoint(p) ? p[0] : p.timestamp); |
| 23 | const getOpen = (p: OHLCDataPoint): number => (isTupleDataPoint(p) ? p[1] : p.open); |
| 24 | const getClose = (p: OHLCDataPoint): number => (isTupleDataPoint(p) ? p[2] : p.close); |
| 25 |
no test coverage detected