[Javascript] Cannot read properties of undefined (reading split) 평소와 같이 split 자바스크립트 함수 사용하였으나, 갑자기 "Cannot read properties of undefined (reading split)..." 에러가 발생하였다. 아래와 같이 에러를 해결할 수 있다. 기존 var workList= data.split('.'); 수정 후 var workList= (data||'').split('.'); (출처: https://okky.kr/questions/876611) Dev/Frontend 2024.01.10