260701_03_ENH: date, object, url util 추가
This commit is contained in:
23
src/index.ts
23
src/index.ts
@@ -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";
|
||||
Reference in New Issue
Block a user