advancements in tests
This commit is contained in:
@@ -7,3 +7,10 @@ export function removeDuplicates(array: []) {
|
||||
}
|
||||
return unique;
|
||||
}
|
||||
|
||||
export function hasSameElements(a1: any[], a2: any[]) {
|
||||
return (
|
||||
a1.length == a2.length &&
|
||||
a1.reduce((a, b) => a && a2.includes(b), true)
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user