mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-05-29 17:37:17 +09:00
12 lines
211 B
TypeScript
12 lines
211 B
TypeScript
export default function(val: string): boolean {
|
|
if (val === undefined) {
|
|
return true;
|
|
} else if (val === null) {
|
|
return true;
|
|
} else if (val.trim() === '') {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|