const length = (min = Number.MIN_VALUE, max = Number.MAX_VALUE) =>
    string => minLength(min)(string) && maxLength(max)(string);