Skip to content

Prefer Object.hasOwn over Object#hasOwnProperty #1818

@ericcornelissen

Description

@ericcornelissen

Caused by #1815 (comment)
Relates to #1814

Summary

Update the code base to move to using Object.hasOwn instead of Object.prototype.hasOwnProperty following the ESlint rule prefer-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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeChanges that are not backwards compatiblependingThis cannot be worked on yetrefactorChanges existing code without changing functionality

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions