Skip to content

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.

3 participants