Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@davoodmehraban89
/
medusa
Fork
0
medusa
/
packages
/
core
/
utils
/
src
/
common
/
is-defined.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
5 lines
143 Bytes
Copy permalink
Copy
Raw
1
export
function
isDefined
<
T
=
undefined
|
unknown
>
(
2
val
:
T
3
):
val
is
T
extends
undefined
?
never
:
T
{
4
return
typeof
val
!==
"
undefined
"
5
}