UNPKG
rpcchannel
Version:
latest (0.3.1)
0.3.1
0.3.0
0.2.4
0.2.3
0.2.2
0.2.0
0.1.4
0.1.3
0.1.2
Easy RPC with permission controls
rpcchannel
/
src
/
utils.ts
11 lines
(9 loc)
•
267 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
// eslint-disable-next-line
function
isDefined
(
val
:
any
):
boolean
{
return
typeof
val !==
'undefined'
&& val !==
undefined
&& val !==
null
}
// eslint-disable-next-line
function
isUndef
(
val
:
any
):
boolean
{
return
!
isDefined
(val) }
export
{ isDefined, isUndef }