UNPKG

@mantine/form

Version:

Mantine form management library

14 lines (12 loc) 310 B
'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; }; } export { matchesField }; //# sourceMappingURL=matches-field.mjs.map