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 cf9f506 commit e077064Copy full SHA for e077064
src/utils.ts
@@ -463,24 +463,6 @@ export function mergeWithAccessors(
463
return dest
464
}
465
466
-export function cloneWithAccessors(obj) {
467
- const clone = {}
468
-
469
- const props = Object.getOwnPropertyNames(obj)
470
- props.forEach(key => {
471
- const desc = Object.getOwnPropertyDescriptor(obj, key)
472
473
- // Do not allow sharing of deeply-nested objects between instances
474
- if (_isPlainObject(desc.value)) {
475
- desc.value = fastCopy(desc.value)
476
- }
477
478
- Object.defineProperty(clone, key, desc)
479
- })
480
481
- return clone
482
-}
483
484
export function checkNamespace(namespace, item, debug) {
485
if (!namespace && debug) {
486
// eslint-disable-next-line no-console
0 commit comments