Dai Siyao

Results 1 comments of Dai Siyao

```javascript function convert(data) { const idMapping = data.reduce((acc, cur, index) => { acc[cur.id] = index return acc }, {}) const arr = [] data.forEach(el => { if (el.parentId === 0)...