Merge the validated fields of an object
The validated type
The validated results to merge
merge({ a: isNumber("1"), b: isNumber(2), c: isNumber("3") }) >> { valid: false, error: { a: 'Not a number: "1"', c: 'Not a number: "3"', }, }; Copy
merge({ a: isNumber("1"), b: isNumber(2), c: isNumber("3") }) >> { valid: false, error: { a: 'Not a number: "1"', c: 'Not a number: "3"', }, };
Merge the validated fields of an object