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 3c1ad08 commit 4ba401dCopy full SHA for 4ba401d
README.md
@@ -1486,8 +1486,8 @@ const obj = {
1486
};
1487
1488
for (const key in obj) {
1489
- // Optional: to avoid iterating over inherited properties
1490
- if (obj.hasOwn(obj, key)) {
+ // To avoid iterating over inherited properties
+ if (Object.hasOwn(obj, key)) {
1491
console.log(`${key}: ${obj[key]}`);
1492
}
1493
@@ -2605,8 +2605,8 @@ const obj = {
2605
2606
2607
2608
2609
2610
2611
2612
0 commit comments