UNPKG

pure-parse

Version:

Strongly typed validation library that decouples type aliases from validation logic

2 lines (1 loc) 143 B
const e=y=>r=>Array.isArray(r)&&r.every(y),n=y=>r=>Array.isArray(r)&&r.length!==0&&r.every(y);export{e as arrayGuard,n as nonEmptyArrayGuard};