Replace lists by sets in the apply action cache

This commit is contained in:
Jonas Lochmann
2020-09-28 02:00:00 +02:00
parent 8d65c5d777
commit 8ebeadad5a
24 changed files with 55 additions and 46 deletions
+8
View File
@@ -20,3 +20,11 @@ import { uniq } from 'lodash'
export function hasDuplicates (list: Array<string>): boolean {
return uniq(list).length !== list.length
}
export function setToList<T> (set: Set<T>): Array<T> {
const result: Array<T> = []
set.forEach((item) => result.push(item))
return result
}