Skip to content

Commit ec72e45

Browse files
chore(comments)
1 parent 1ccf183 commit ec72e45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vue-dd/src/NodeComplex.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,8 @@ export default {
479479
480480
// Get all object properties
481481
const proto = Object.getPrototypeOf(this.modelValue)
482+
483+
// Converting to and from set, deduplicates the array
482484
keys = Array.from(new Set(Object.getOwnPropertyNames(this.modelValue)
483485
.concat(proto && proto.constructor.name !== 'Object' ? Object.getOwnPropertyNames(proto) : [])))
484486

0 commit comments

Comments
 (0)