mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
packages
This commit is contained in:
10
packages/devtools-ui/src/utils/exclude-keys.ts
Normal file
10
packages/devtools-ui/src/utils/exclude-keys.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export const excludeKeys = <T extends Record<string, any>>(
|
||||
obj: T,
|
||||
keys: string[],
|
||||
): T => {
|
||||
const newObj = { ...obj };
|
||||
keys.forEach((key) => {
|
||||
delete newObj[key];
|
||||
});
|
||||
return newObj;
|
||||
};
|
||||
Reference in New Issue
Block a user