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 4881622 commit cb5af8bCopy full SHA for cb5af8b
packages/runtime/src/utils/clone.ts
@@ -1,5 +1,4 @@
1
-// @ts-expect-error
2
-import { isPlainObject } from 'is-plain-object';
+import { isPlainObject } from '@zenstackhq/common-helpers';
3
4
/**
5
* Clones the given object. Only arrays and plain objects are cloned. Other values are returned as is.
@@ -14,7 +13,6 @@ export function clone<T>(value: T): T {
14
13
return value;
15
}
16
17
-
18
const result: any = {};
19
for (const key of Object.keys(value)) {
20
result[key] = clone(value[key as keyof T]);
0 commit comments