How to add special character in array map?
How to add special characters like : to array map ? I want to achieve this. ’10’: [“11/21/2022”, “11/25/2022”] this is what I have so far const data = [{ “user_id”: “10”, “dates”: [“11/21/2022”, “11/25/2022”] }] const output = data.map(({ user_id, dates }) => [user_id, dates]); console.log(output); >Solution : I’m going to guess that you’re… Read More How to add special character in array map?