Start using Object.hasOwn()
Yuval Aloni
Above - screenshot from MDN’s Object.hasOwn() documentation. If you so far waited to make the switch because of “lack of wide support”:Since April 2025 - even the Android native browser and Android Firefox support it by now (and there has been wide support for all major browsers since 2022)....