Almost MVP

This commit is contained in:
2022-11-22 04:03:32 +01:00
parent ea3b7aeecf
commit dcaa052f30
19 changed files with 430 additions and 134 deletions
+6
View File
@@ -0,0 +1,6 @@
export function validateObjectKeys<K extends string>(obj: any, keys: K[]): boolean {
const keySet = new Set(keys)
// @ts-ignore
return Object.keys(obj).every(key => keySet.has(key))
}