UNPKG

@typed/io

Version:

Runtime IO type system

4 lines 231 B
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