Checks if one of two assertions passes.
If none of them passes it throws an error.
const trueish = or(literal(1), literal(true));trueish("yassss"); // Error: literaltrueish(1); // passestrueish(true); // passes Copy
const trueish = or(literal(1), literal(true));trueish("yassss"); // Error: literaltrueish(1); // passestrueish(true); // passes
First assertion to be checked.
Second assertion to be checked.
Checks if one of two assertions passes.
If none of them passes it throws an error.
Example