Skip to content
  • Philip Chimento's avatar
    maint: Use Object.hasOwn() · 4ef16490
    Philip Chimento authored
    It's bad practice to call `someObj.hasOwnProperty()` because the
    hasOwnProperty method could have been overridden. Instead use
    Object.hasOwn() which is intended to be a safer and easier replacement.
    4ef16490