Skip to content

Commit b8ba696

Browse files
committed
make it clear we're dealing with an attribute name, not an index
1 parent bc1f07b commit b8ba696

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/utils/src/object.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ function getWalkSource(
131131
source.detail = event.detail;
132132
}
133133

134-
for (const i in event) {
135-
if (Object.prototype.hasOwnProperty.call(event, i)) {
136-
source[i] = event[i];
134+
for (const attr in event) {
135+
if (Object.prototype.hasOwnProperty.call(event, attr)) {
136+
source[attr] = event[attr];
137137
}
138138
}
139139

0 commit comments

Comments
 (0)