(a: any[], b: any[])
| 1 | import { isArray, isDate, isObject, isSymbol } from './general' |
| 2 | |
| 3 | function looseCompareArrays(a: any[], b: any[]) { |
| 4 | if (a.length !== b.length) return false |
| 5 | let equal = true |
| 6 | for (let i = 0; equal && i < a.length; i++) { |
| 7 | equal = looseEqual(a[i], b[i]) |
| 8 | } |
| 9 | return equal |
| 10 | } |
| 11 | |
| 12 | export function looseEqual(a: any, b: any): boolean { |
| 13 | if (a === b) return true |
no test coverage detected