TypeScript Operators - GeeksforGeeks
In TypeScript, the ternary operator, also known as the conditional operator, is a concise way to write conditional statements. It allows you to express a simple if-else statement in a single line.
Source: www.geeksforgeeks.org