Skip to content

Commit

Permalink
docs: add rule id
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Nov 25, 2021
1 parent b955073 commit b738771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/prefer-object-has-own.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Prefer `Object.hasOwn(…)` over `Object.prototype.hasOwnProperty.call(…)`
# Prefer `Object.hasOwn(…)` over `Object.prototype.hasOwnProperty.call(…)` (prefer-object-has-own)

`Object.hasOwn(…)` is more accessible than `Object.prototype.hasOwnProperty.call(…)`.

Expand Down

0 comments on commit b738771

Please sign in to comment.