(a0: ActiveDataPoint[], a1: ActiveDataPoint[])
| 165 | * @private |
| 166 | */ |
| 167 | export function _elementsEqual(a0: ActiveDataPoint[], a1: ActiveDataPoint[]) { |
| 168 | let i: number, ilen: number, v0: ActiveDataPoint, v1: ActiveDataPoint; |
| 169 | |
| 170 | if (!a0 || !a1 || a0.length !== a1.length) { |
| 171 | return false; |
| 172 | } |
| 173 | |
| 174 | for (i = 0, ilen = a0.length; i < ilen; ++i) { |
| 175 | v0 = a0[i]; |
| 176 | v1 = a1[i]; |
| 177 | |
| 178 | if (v0.datasetIndex !== v1.datasetIndex || v0.index !== v1.index) { |
| 179 | return false; |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | return true; |
| 184 | } |
| 185 | |
| 186 | /** |
| 187 | * Returns a deep copy of `source` without keeping references on objects and arrays. |
no outgoing calls
no test coverage detected