Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(test/index): use Object.hasOwn() #43

Merged
merged 1 commit into from
Oct 19, 2024
Merged

refactor(test/index): use Object.hasOwn() #43

merged 1 commit into from
Oct 19, 2024

Conversation

Fdawgs
Copy link
Member

@Fdawgs Fdawgs commented Oct 19, 2024

Replaces Object.prototype.hasOwnProperty.call() with the shorter alias Object.hasOwn(), which can now be used as support for older Node versions was dropped with Fastify v5.

See related MDN page.

Checklist

Signed-off-by: Frazer Smith <frazer.dev@icloud.com>
@Fdawgs Fdawgs changed the title refactor(test/index): replace prototype.hasOwnProperty.call refactor(test/index): use Object.hasOwn() Oct 19, 2024
@Fdawgs
Copy link
Member Author

Fdawgs commented Oct 19, 2024

Thanks for reviewing @gurgunday, I think you were the one who recommended this in an issue/PR a while back but I couldn't find it to link to. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants