📬 Check own properties safely with Object.hasOwn()

A safer alternative to hasOwnProperty, works even on objects with a null prototype.

Baseline since 2022 ✅

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwn