Skip to content

isEmpty

대상이 비어있는지(빈 배열, 빈 객체, 빈 문자열 등등) 찾아주는 유틸 함수

arguments

이름타입설명
valueunknown확인할 값

example

ts
isEmpty([]); // true
isEmpty({}); // true
isEmpty(''); // true
isEmpty('test'); // false