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
/
Tuple.js
4 lines
•
231 B
JavaScript
View Raw
1
2
3
4
import
{
Array
}
from
'./Array'
;
import
{ refinement }
from
'./refinement'
;
export
const
tuple
= (
types
) =>
refinement
(
Array
,
(
a
) =>
a.
length
=== types.
length
&& a.
every
(
(
v, i
) =>
types[i].
is
(v)));
//# sourceMappingURL=Tuple.js.map