Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@davoodmehraban89
/
medusa
Fork
0
medusa
/
packages
/
admin
/
dashboard
/
src
/
lib
/
is-empty.ts
Code
Commits
Issues
Pulls
Cloud Agent
CICD
security/codeql-dependabot-gitleaks
automation/medusa-upstream-review
main
project/medusa-foundation-audit
security/codeql-dependabot-gitleaks
ts
7 lines
166 Bytes
Copy permalink
Copy
Raw
1
export
const
isEmpty
=
(
value
:
unknown
)
=>
{
2
return
(
3
value
===
null
||
4
value
===
undefined
||
5
(
typeof
value
===
"
string
"
&&
value
.
trim
()
===
""
)
6
)
7
}