Checking object properties with if (obj[key]) fails when the value is an empty string “”. This post explains why and how to fix…
Checking object properties with if (obj[key]) fails when the value is an empty string “”. This post explains why and how to fix…