(a?: PointLike, b?: PointLike)
| 7 | * @returns true if the points are equal |
| 8 | */ |
| 9 | export function arePointsEqual(a?: PointLike, b?: PointLike): boolean { |
| 10 | const ax = Array.isArray(a) ? a[0] : a ? a.x : 0; |
| 11 | const ay = Array.isArray(a) ? a[1] : a ? a.y : 0; |
| 12 | const bx = Array.isArray(b) ? b[0] : b ? b.x : 0; |
| 13 | const by = Array.isArray(b) ? b[1] : b ? b.y : 0; |
| 14 | return ax === bx && ay === by; |
| 15 | } |
| 16 | |
| 17 | /* eslint-disable complexity */ |
| 18 | /** |
no outgoing calls
no test coverage detected
searching dependent graphs…