UNPKG

pure-parse

Version:

Strongly typed validation library that decouples type aliases from validation logic

2 lines (1 loc) 225 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=y=>r=>Array.isArray(r)&&r.every(y),a=y=>r=>Array.isArray(r)&&r.length!==0&&r.every(y);exports.arrayGuard=e;exports.nonEmptyArrayGuard=a;