Union in typescript allows the variable to hold more than one type of value. It is useful when variable can be of various types. It is defined by | operator between types. //Simple Union let randomValue:string|number=12; randomValue="John Doe"; //ran...
Experienced Frontend Engineer with a demonstrated history of working in the computer software industry for more than 3 years.
Markdown supported · ⌘↵ to post
No responses yet.