Skip to content

Commit

Permalink
refactor(index): use Object.hasOwn() (#70)
Browse files Browse the repository at this point in the history
Signed-off-by: Frazer Smith <frazer.dev@icloud.com>
  • Loading branch information
Fdawgs authored Oct 19, 2024
1 parent b7d503d commit 7d94f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function compile (val) {
for (var i = 0; i < trust.length; i++) {
val = trust[i]

if (!Object.prototype.hasOwnProperty.call(IP_RANGES, val)) {
if (!Object.hasOwn(IP_RANGES, val)) {
continue
}

Expand Down

0 comments on commit 7d94f75

Please sign in to comment.