mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(store): store selector api (#370)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user