Function any

  • Merge an array of validated results using a logical OR

    Type Parameters

    • T

      The validated type

    Parameters

    • results: Validated<T>[]

      The validated results to merge

    Returns Validated<T[]>

    Example

    any(["1", 2, "3"].map(isNumber)) >>
    {
    valid: true,
    parsed: [2],
    };