260701_03_ENH: date, object, url util 추가

This commit is contained in:
2026-07-01 09:36:56 +09:00
parent f57f42baff
commit 510b4a9e68
8 changed files with 164 additions and 21 deletions

View File

@@ -1,19 +1,6 @@
/**
* 문자열이 null, undefined 또는 공백인지 확인한다.
*/
export function isBlank(
value: string | null | undefined,
): boolean {
return value === null
|| value === undefined
|| value.trim().length === 0;
}
export type * from "./types.js";
/**
* 문자열에 공백이 아닌 문자가 있는지 확인한다.
*/
export function isNotBlank(
value: string | null | undefined,
): boolean {
return !isBlank(value);
}
export * from "./object.js";
export * from "./url.js";
export * from "./date.js";
export * from "./string.js";