Skip to content

fix(multiple): replace hasOwnProperty with Object.hasOwn - #33843

Open
crisbeto wants to merge 1 commit into
angular:mainfrom
crisbeto:has-own-property
Open

crisbeto wants to merge 1 commit into
angular:mainfrom
crisbeto:has-own-property

Conversation

@crisbeto

Copy link
Copy Markdown
Member

Replaces all the usages of hasOwnProperty with Object.hasOwn since the latter handles some edge cases better. We went through this exercise on the framework repo some time ago.

Replaces all the usages of `hasOwnProperty` with `Object.hasOwn` since the latter handles some edge cases better. We went through this exercise on the framework repo some time ago.
@crisbeto crisbeto added the target: rc This PR is targeted for the next release-candidate label Sep 20, 2026
@pullapprove
pullapprove Bot requested a review from josephperrott September 20, 2026 09:16
@crisbeto
crisbeto requested a review from ok7sai September 20, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants