작업을 하던 도중, 정의가 되지 않은 obj 에 관하여 hasOwnProperty를 사용할 때
생기는 에러이다.
아래 코드로 해결을 하였으며, 자세한 내용은 더 공부해봐야 할 것 같다.
if(Object.prototype.hasOwnProperty.call(events, key)) {
// This would compile without any issue !
console.log("The object has the property");
}