Merge pull request #749 from sarahBuisson/patch-1

Update Defaults.ts
This commit is contained in:
Yotam Mann 2020-09-21 09:24:14 -04:00 committed by GitHub
commit 491bd08a21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,7 @@ export function deepMerge(target: any, ...sources: any[]): any {
/**
* Returns true if the two arrays have the same value for each of the elements
*/
export function deepEquals(arrayA: number[] | string[], arrayB: number[] | string[]): boolean {
export function deepEquals(arrayA: any[], arrayB: any[]): boolean {
return arrayA.length === arrayB.length && arrayA.every((element, index) => arrayB[index] === element);
}