Typecript에서 정의되지 않은 검사 방법 정의되지 않은 변수를 확인하기 위해 이 코드를 사용하고 있는데 작동이 안 돼. var uemail = localStorage.getItem("useremail"); if (typeof uemail === "undefined") { alert('undefined'); } else { alert('defined'); } Typecript 2에서 Undefined type을 사용하여 정의되지 않은 값을 확인할 수 있다.따라서 변수를 다음과 같이 선언할 경우: let uemail : string | undefined; 그런 다음 변수 z가 다음과 같이 정의되지 않았는지 확인할 수 있다. if(uemail === undefined) { } 이것만 확인하면 된다. if..