And of course I want to do this code-wise. It\'s not that there isn\'t alternative to this problem I\'m facing, just curious.
UPDATE: use the hasOwnProperty method as Gary Chambers suggests. The solution below will work, but it's considered best practice to use hasOwnProperty.
hasOwnProperty
if ('field' in obj) { }