We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b072ce1 commit 26f84c8Copy full SHA for 26f84c8
src/omit.ts
@@ -2,7 +2,7 @@ export default function omit<T extends object, K extends keyof T>(
2
obj: T,
3
fields: K[] | readonly K[],
4
): Omit<T, K> {
5
- const clone = { ...obj };
+ const clone = Object.assign({}, obj);
6
7
if (Array.isArray(fields)) {
8
fields.forEach(key => {
0 commit comments