(p: OHLCDataPoint)
| 18 | }; |
| 19 | |
| 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); |
no outgoing calls
no test coverage detected