UNPKG
fully-optional
Version:
latest (1.2.0)
1.2.0
1.1.5
1.1.4
1.1.3
1.1.1
1.1.0
1.0.0
0.0.5
0.0.4
0.0.3
<div align="center">
github.com/YuriiOstapchuk/fully-optional
YuriiOstapchuk/fully-optional
fully-optional
/
src
/
isEmpty.ts
8 lines
(5 loc)
•
182 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
import
{
None
,
Optional
}
from
'./types'
;
export
function
isEmpty<T>(
value
:
Optional
<T>): value is
None
{
return
value ===
null
|| value ===
undefined
; }
export
default
isEmpty;