succulent
Version:
Powerful and easy runtime type checking
13 lines • 320 B
JavaScript
export function hasLength(length) {
return (x) => x.length === length;
}
export function minLength(length) {
return (x) => x.length >= length;
}
export function maxLength(length) {
return (x) => x.length <= length;
}
export function nonEmpty(x) {
return x.length > 0;
}
//# sourceMappingURL=length.js.map