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
/
Guard.js
10 lines
•
270 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ curry }
from
'@typed/lambda'
;
export
var
Guard
; (
function
(
Guard
) {
Guard
.
is
=
(
is
) =>
({ is }); })(
Guard
|| (
Guard
= {}));
export
const
guard =
curry
(__guard);
function
__guard
(
guard, value
) {
return
guard.
is
(value); }
//# sourceMappingURL=Guard.js.map