JavaScript/TypeScript Solution required

Job ID: 33281765

Budget: £10 – £20 GBP

I have two js arrays - categories and entityTypes - both are arrays objects, which I need to combine correctly so that they match the desiredOutcome const

I am relatively new with JS objects so am not sure how to approach this - please take a look at the uploaded file

Apologies if you previously bid on our similar posting recently, it was accidentally deleted
Related categories: JavaScript Typescript