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 85c4c36 commit db091b8
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 @@ -35,7 +35,7 @@ function parseOptions(acceptedOptions, options, version) {
/** @type {string[]} */
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 db091b8

Please sign in to comment.