Prefer Object.hasOwn
over Object#hasOwnProperty
#1818
Labels
breaking change
Changes that are not backwards compatible
pending
This cannot be worked on yet
refactor
Changes existing code without changing functionality
Caused by #1815 (comment)
Relates to #1814
Summary
Update the code base to move to using
Object.hasOwn
instead ofObject.prototype.hasOwnProperty
following the ESlint ruleprefer-object-has-own
and enforce this using ESLint.This is currently pending because
Object.hasOwn
was not yet introduced in Node.js v14.18.0, which is still supported by this package.The text was updated successfully, but these errors were encountered: