@inkline/inkline
Version:
Inkline is the Vue.js UI/UX Library built for creating your next design system
13 lines • 419 B
JavaScript
export function minLength(value, options = { value: 0 }) {
if (value === undefined || value === null) {
return false;
}
if (value.constructor === Array) {
return value.length >= options.value;
}
if (typeof value === 'object') {
return Object.keys(value).length >= options.value;
}
return String(value).length >= options.value;
}
//# sourceMappingURL=minLength.mjs.map