Changed 'key in obj' checks to 'obj.hasOwnProperty(key)' for clarity and to avoid any edge case scenarios.
Changed 'key in obj' checks to 'obj.hasOwnProperty(key)' for clarity and to avoid any edge case scenarios.

codetunnel/shotgun