@mantine/form
Version:
Mantine form management library
16 lines (13 loc) • 337 B
JavaScript
'use client';
;
function matchesField(field, error) {
const _error = error || true;
return (value, values) => {
if (!values || !(field in values)) {
return _error;
}
return value === values[field] ? null : _error;
};
}
exports.matchesField = matchesField;
//# sourceMappingURL=matches-field.cjs.map