feat(store): store selector api (#370)

This commit is contained in:
rahim
2026-02-02 13:11:05 +11:00
committed by GitHub
parent 8bd0d05cdb
commit ad94af25b5
25 changed files with 586 additions and 200 deletions
+1 -3
View File
@@ -9,9 +9,7 @@ export function pick<T extends Record<string, unknown>, K extends keyof T>(obj:
const result = {} as Pick<T, K>;
for (const key of keys) {
if (Object.hasOwn(obj, key)) {
result[key] = obj[key];
}
result[key] = obj[key];
}
return result;