Validates every item and returns whether all are valid. Unlike &&, it deliberately does not stop at the first failure: the user should see all the broken items at once.

  • Type Parameters

    • T

    Parameters

    • items: readonly T[]
    • validateItem: (item: T, index: number) => boolean

    Returns boolean