(p: DataPoint)
| 55 | }; |
| 56 | |
| 57 | const isTupleDataPoint = (p: DataPoint): p is DataPointTuple => Array.isArray(p); |
| 58 | |
| 59 | const getPointXY = (p: DataPoint): { readonly x: number; readonly y: number } => { |
| 60 | if (isTupleDataPoint(p)) return { x: p[0], y: p[1] }; |
no outgoing calls
no test coverage detected