type fruit = 'apple' | 'orange' | 'grape'
type fruits = ['apple', 'orange', 'grape']
How do I get fruits based on fruit?
Or else how do I do it the other way around where I get fruit based on fruits?
type fruit = 'apple' | 'orange' | 'grape'
type fruits = ['apple', 'orange', 'grape']
How do I get fruits based on fruit?
Or else how do I do it the other way around where I get fruit based on fruits?