728x90
/*-
* 빈값 체크 함수
* 빈값 일 시, true 반환
* */
var isEmpty = function isEmpty(value) {
return value === "" || value === null || value === undefined || typeof value === "undefined" || (typeof value === "object" && !Object.keys(value).length) || (typeof value === "object" && value.length === 0);
};
728x90