Skip to content

Commit ffd39ee

Browse files
committed
chore: isFilledString 함수 추가
1 parent af3492c commit ffd39ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/common/src/utils/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import * as R from "remeda";
2+
13
import {
24
buildNestedSiteMap as _buildNestedSiteMap,
35
findSiteMapUsingRoute as _findSiteMapUsingRoute,
@@ -16,6 +18,7 @@ namespace Utils {
1618
export const getCookie = _getCookie;
1719
export const isFormValid = _isFormValid;
1820
export const getFormValue = _getFormValue;
21+
export const isFilledString = (obj: unknown): obj is string => R.isString(obj) && !R.isEmpty(obj);
1922
}
2023

2124
export default Utils;

0 commit comments

Comments
 (0)