(p: OHLCDataPoint)
| 157 | |
| 158 | const isTupleDataPoint = (p: DataPoint): p is DataPointTuple => Array.isArray(p); |
| 159 | const isTupleOHLCDataPoint = (p: OHLCDataPoint): p is OHLCDataPointTuple => Array.isArray(p); |
| 160 | |
| 161 | const getPointXY = (p: DataPoint): { readonly x: number; readonly y: number } => { |
| 162 | if (isTupleDataPoint(p)) return { x: p[0], y: p[1] }; |
no outgoing calls
no test coverage detected