mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-04-29 02:37:27 +09:00
15 lines
246 B
JavaScript
15 lines
246 B
JavaScript
export default function (val) {
|
|
if (val === undefined) {
|
|
return true;
|
|
}
|
|
else if (val === null) {
|
|
return true;
|
|
}
|
|
else if (val.trim() === '') {
|
|
return true;
|
|
}
|
|
else {
|
|
return false;
|
|
}
|
|
}
|