If the numbers are separated by , u can split the string like this:
,
const id = '1,8,10' const output = id.split(',') console.log(output) >>> ["1", "8", "10"]
2.1m questions
2.1m answers
60 comments
56.9k users