Use hasOwnProperty() to check for object properties rather than checking for a value of the property (to avoid matching other properties, like toString).
Resolves issue #1996 (closed).
Use hasOwnProperty() to check for object properties rather than checking for a value of the property (to avoid matching other properties, like toString).
Resolves issue #1996 (closed).