CSR-2076 | Make equals statement more robust
This commit is contained in:
parent
252d5454a1
commit
4830a53fb7
1 changed files with 6 additions and 0 deletions
|
|
@ -2988,6 +2988,12 @@ function providersEqual(providerA, providerB) {
|
|||
}
|
||||
|
||||
function supportingItemsEqual(supportingItemsA, supportingItemsB) {
|
||||
if (typeof supportingItemsA !== typeof supportingItemsB) {
|
||||
return false;
|
||||
}
|
||||
if (supportingItemsA === null || supportingItemsB === null) {
|
||||
return supportingItemsA === supportingItemsB;
|
||||
}
|
||||
if (supportingItemsA.length != supportingItemsB.length) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue