UNPKG
@typed/io
Version:
latest (1.2.0)
1.2.0
1.1.2
1.1.1
1.1.0
1.0.0
Runtime IO type system
@typed/io
/
esm
/
guard
/
Null.js
6 lines
•
224 B
JavaScript
View Raw
1
2
3
4
5
6
import
{ isNull }
from
'@typed/logic'
;
import
{
Guard
}
from
'./Guard'
;
import
{ union }
from
'./Union'
;
export
const
Null
=
Guard
.
is
(isNull);
export
const
nullable
= (
g
) =>
union
([g,
Null
]);
//# sourceMappingURL=Null.js.map