In this JavaScript Tuesday, we look at .hasOwn() added in EcmaScript 2022 (ES13). It is a nice replacement to the very LONG Object.prototype.hasOwnProperty and has two use cases: 1. when you need to check for a property and a ! won't do the trick (truthy and falsy). 2. when you are checking for inheritance and you don't want to use the old workarounds, An absolute must brevity and modern JS ! Make sure to hit subscribe and never miss a JavaScript Tuesday release!
Code: https://github.com/robertbunch/es-next
History of ECMAScript/JavaScript (long) - • Visual Timeline of JavaScript and ECM...
History of ECMAScript/JavaScript (shorter) - • Visual Timeline of JavaScript and ECM...
ES playlist: • EcmaScript Updates
0:00 - Intro
0:30 - Docs
3:31 - Code Example: Use Case 1
5:45 - Code Example: Use Case 2
Watch video JavaScript, does that property exist? - ES13 online without registration, duration hours minute second in high quality. This video was added by user Good Morning Developers 04 June 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 12 once and liked it people.