[Javascript] undefined 체크

taeyoung Ahn·2024년 7월 19일

javascript에서 undefined를 체크

str객체의 value 프로퍼티
let devNo_value = typeof str.value === 'undefined' ? '' : str.value

profile
극락코드드

0개의 댓글