Validate an input's fields with validators
The validated type
validateAll(isNumber)([1, 2, 3]) >> { valid: true, parsed: [1, 2, 3], }; validateAll(isNumber)(["1", 2, "3"]) >> { valid: false, error: ['Not a number: "1"', 'Not a number: "3"'], }; Copy
validateAll(isNumber)([1, 2, 3]) >> { valid: true, parsed: [1, 2, 3], }; validateAll(isNumber)(["1", 2, "3"]) >> { valid: false, error: ['Not a number: "1"', 'Not a number: "3"'], };
Validate an input's fields with validators