Transform object data with recursive
问题 I try to transform data with recursive but I can't, I'm very newbie for recursive please help me Is it need to do with recursive or not what you guy think, Please help me (sorry for my english) This is my data const mock = [ { $: { id: '001' } }, { $: { id: '002' }, question: [{ $: { id: 'r001' }, prompt: 'some-r001', choices: [{ question: [ { $: { id: 'r001-1' }, prompt: 'some-r001-1', choices: [{ question: [{ $: { id: 'r001-1-1' }, prompt: 'some-r001-1-1', choices: [""], }] }] }, { $: { id: