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
/
Set.js
5 lines
•
232 B
JavaScript
View Raw
1
2
3
4
5
import
{ isSet }
from
'@typed/logic'
;
import
{ refinement }
from
'./refinement'
;
export
const
Set
= {
is
: isSet };
export
const
set
= (
g
) =>
refinement
(
Set
,
(
s
) =>
Array
.
from
(s.
values
()).
every
(g.
is
));
//# sourceMappingURL=Set.js.map