Recursive function not working as expected when mapping through nested elements

后端 未结 0 1618
花落未央
花落未央 2020-11-30 17:38

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         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题