Skip to content

Commit 4ba401d

Browse files
[auto] regenerate table of contents
1 parent 3c1ad08 commit 4ba401d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,8 +1486,8 @@ const obj = {
14861486
};
14871487

14881488
for (const key in obj) {
1489-
// Optional: to avoid iterating over inherited properties
1490-
if (obj.hasOwn(obj, key)) {
1489+
// To avoid iterating over inherited properties
1490+
if (Object.hasOwn(obj, key)) {
14911491
console.log(`${key}: ${obj[key]}`);
14921492
}
14931493
}
@@ -2605,8 +2605,8 @@ const obj = {
26052605
};
26062606

26072607
for (const key in obj) {
2608-
// Optional: to avoid iterating over inherited properties
2609-
if (obj.hasOwn(obj, key)) {
2608+
// To avoid iterating over inherited properties
2609+
if (Object.hasOwn(obj, key)) {
26102610
console.log(`${key}: ${obj[key]}`);
26112611
}
26122612
}

0 commit comments

Comments
 (0)