repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove useless eslint-disable
[e-mobility-charging-stations-simulator.git]
/
src
/
utils
/
Utils.ts
diff --git
a/src/utils/Utils.ts
b/src/utils/Utils.ts
index 4fb2ce7bd2e5482a431b608f777e6b05475035f9..8eebc2abe64a2526984ee2f0eb2bf56ddcaa505f 100644
(file)
--- a/
src/utils/Utils.ts
+++ b/
src/utils/Utils.ts
@@
-171,6
+171,10
@@
export default class Utils {
return typeof value === 'string';
}
return typeof value === 'string';
}
+ public static isEmptyString(value: unknown): boolean {
+ return Utils.isString(value) && (value as string).length === 0;
+ }
+
public static isUndefined(value: unknown): boolean {
return typeof value === 'undefined';
}
public static isUndefined(value: unknown): boolean {
return typeof value === 'undefined';
}