message: refactor: use filter instead of ternary for validateList
diff: @@ -37,8 +37,7 @@ export default function validateList(validator: ValidatorFunction): ListValidato
  * results that are not arrays (and thus aren't for individual list items).
  */
  export function transposeResults(results?: Array<ValidatorResult | ValidatorResult[]>) {
  - const transposer = (acc: ValidatorResult[][], itemErrors: ValidatorResult[]) => (
  - Array.isArray(itemErrors) ? itemErrors.map((val, index) => [...(acc[index] || []), val]) : acc
  - );
  + const transposer = (acc: ValidatorResult[][], itemErrors: ValidatorResult[]) =>
  + itemErrors.filter(Array.isArray).map((val, index) => [...(acc[index] || []), val]);
  return results ? results.reduce(transposer, []) : undefined;
  }
  