I\'m trying to recursively map through an array of objects, which could have the same type of objects nested in themselves.
i.e.,
type TOption = { id