UNPKG

@mantine/form

Version:

Mantine form management library

13 lines (12 loc) 392 B
"use client"; //#region packages/@mantine/form/src/validators/matches-field/matches-field.ts function matchesField(field, error) { const _error = error || true; return (value, values) => { if (!values || !(field in values)) return _error; return value === values[field] ? null : _error; }; } //#endregion exports.matchesField = matchesField; //# sourceMappingURL=matches-field.cjs.map