Pushes message to errors when the condition fails, and returns the condition. Chain checks with && to stop at the first failure.

  • Parameters

    • condition: boolean
    • message: string
    • Optionalerrors: string[]

    Returns boolean