Skip to content

Commit

Permalink
refactor(index): replace hasOwnProperty.call() with hasOwn()
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Sep 17, 2023
1 parent 680aa50 commit fbedb02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function parseOptions(acceptedOptions, options, version) {
const args = [];
const invalidArgs = [];
Object.keys(options).forEach((key) => {
if (Object.prototype.hasOwnProperty.call(acceptedOptions, key)) {
if (Object.hasOwn(acceptedOptions, key)) {
// eslint-disable-next-line valid-typeof
if (typeof options[key] === acceptedOptions[key].type) {
// Skip boolean options if false
Expand Down

0 comments on commit fbedb02

Please sign in to comment.