0
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?

Ibrahim Ali
  • 2,083
  • 2
  • 15
  • 36

0 Answers0