Skip to content

Commit

Permalink
refactor: use hasOwn (#3951)
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz authored Jul 31, 2024
1 parent 832faee commit 8a7f2f2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/vega-util/src/hasOwnProperty.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const hop = Object.prototype.hasOwnProperty;

export default function(object, property) {
return hop.call(object, property);
return Object.hasOwn(object, property);
}

0 comments on commit 8a7f2f2

Please sign in to comment.