mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-06-30 23:38:01 +09:00
3.0.1
This commit is contained in:
14
built/utils/null-or-empty.js
Normal file
14
built/utils/null-or-empty.js
Normal file
@ -0,0 +1,14 @@
|
||||
export default function (val) {
|
||||
if (val === undefined) {
|
||||
return true;
|
||||
}
|
||||
else if (val === null) {
|
||||
return true;
|
||||
}
|
||||
else if (val.trim() === '') {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user