Function firstTrue

  • Returns with a promise that waits until the first promise resolves to true.

    Parameters

    • Rest ...promises: readonly Promise<boolean>[]

    Returns Promise<boolean>