Check If An Object Contains A Property
Category: JavaScript
Explanation
The in operator specifically checks whether an object has a specific key. So, instead of accessing the property and checking whether it is undefined, you can better mark your intent by just using in
.