mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-27 20:13:07 +00:00
commit
491bd08a21
1 changed files with 1 additions and 1 deletions
|
@ -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
|
* 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);
|
return arrayA.length === arrayB.length && arrayA.every((element, index) => arrayB[index] === element);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue