주어진 값이 null, undefined ,빈 문자열인지 판별하기 위해서, 다들 어떤 방법을 사용하시나요 ? ? #290
khj0426
started this conversation in
Open Forum
Replies: 1 comment
-
위와 같이 사용하고 있습니다 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
안녕하세요,, 문득 궁금한게 생겨서 남겨봅니당.
특정 값이 null , undefined, 빈 문자열..? 인지 아닌지의 여부를 판단할 때, 보통 어떤 방식을 선호하시나요 ?
isNotNil
,isNil
과 같은 별도의 검증 유틸을 사용하는 편인데, 명시적으로 특정값 === null << 요런 형태로도 많이 사용하는 것 같아요!여러분들은 어떤 방법을 더 선호하시나요 ? ?
Beta Was this translation helpful? Give feedback.
All reactions