We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5676c9 commit f8d9930Copy full SHA for f8d9930
exercises/practice/anagram/anagram.test.ts
@@ -1,7 +1,7 @@
1
import { describe, it, expect, xit } from '@jest/globals'
2
import { Anagram } from './anagram.ts'
3
4
-const areSetsEqual = (setA, setB) =>
+const areSetsEqual = <T>(setA: Set<T>, setB: Set<T>): boolean =>
5
setA.size === setB.size && [...setA].every((val) => setB.has(val))
6
7
describe('Anagram', () => {
0 commit comments