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
/
isNotEmpty.ts
9 lines
(6 loc)
•
190 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
import
isEmpty
from
'./isEmpty'
;
import
{
Optional
}
from
'./types'
;
export
function
isNotEmpty<T>(
value
:
Optional
<T>): value is T {
return
!
isEmpty
(value); }
export
default
isNotEmpty;