Validate an array of inputs individually
The validated type
The validator to use
validateEach(isNumber)([1, "2"]) >> [ { valid: true, parsed: 1, }, { valid: false, error: 'Not a number: "2"', }, ]; Copy
validateEach(isNumber)([1, "2"]) >> [ { valid: true, parsed: 1, }, { valid: false, error: 'Not a number: "2"', }, ];
Validate an array of inputs individually