How to Check if an Object Property Is Undefined in JavaScript | CodeTrail