This repository has been archived by the owner on Nov 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved general helpers and added their funcs to flume index (sc2079)
- Loading branch information
1 parent
0ae1522
commit 3835f71
Showing
3 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './lib/theme' | ||
export * from './lib/components' | ||
export * from './lib/hooks' | ||
export * from './lib/helpers' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
export const isNullOrUndefined = (value: any) => { | ||
return value === undefined || value === null | ||
return value === undefined || value === null || typeof value === 'undefined' | ||
} | ||
|
||
export const isEmpty = (value: any) => { | ||
return value === undefined || value === null || value.trim().length === 0 | ||
return isNullOrUndefined(value) || value.trim().length === 0 | ||
} | ||
|
||
export default { isNullOrUndefined, isEmpty } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './general' |