mirror of https://github.com/zombieFox/voltTab.git
13 lines
219 B
JavaScript
13 lines
219 B
JavaScript
|
export const isValidString = (value) => {
|
||
|
let result = false;
|
||
|
|
||
|
if (typeof value == 'string') {
|
||
|
value = value.trim().replace(/\s/g, '');
|
||
|
if (value != '') {
|
||
|
result = true;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return result;
|
||
|
};
|