feat: initialize @kri/common package

This commit is contained in:
2026-06-30 12:15:32 +09:00
commit 6651f155de
5 changed files with 120 additions and 0 deletions

10
src/index.ts Normal file
View File

@@ -0,0 +1,10 @@
/**
* 문자열이 null, undefined 또는 공백인지 확인한다.
*/
export function isBlank(
value: string | null | undefined,
): boolean {
return value === null
|| value === undefined
|| value.trim().length === 0;
}