첫번 쨰 요구 사항지금 구현된 코드에서는 state에 대한 정합성 체크를 전혀 하지 않는데, 이 부분을 보충해주세요. Type Check 자바스크립트에서 타입체크 하는 방법typeof1. toString을 사용한 helper 함수 이용2. instance of 사용 https://poiemaweb.com/js-type-checkhttps://gomakethings.com/true-type-checking-with-vanilla-js/ 두번째 요구사항 이전 상태와 다음 상태를 비교 어떻게??