Creating a Array of objects from the union type.
Consider
I want to create a custom array of object with a prop value to be in Gender Union
I want to create a custom array of object with a prop value to be in Gender Union
type Gender = "Male" | "Female"type SelectOptions = {
label: string,
value: // Either Male or Female
}[]. // I want both Male and Female SelectOption object to be present