My array data is like this
"userRoles": [
{
"id": 1,
"name": "Create",
"description": "This is For Create ",
"checked": false,
"isDeleted": false,
"applicationId": 1,
"application": "DMTS",
"totalPermissions": 0
},
{
"id": 2,
"name": "Update",
"description": "This is For Update",
"checked": false,
"isDeleted": false,
"applicationId": 1,
"application": "DMTS",
"totalPermissions": 0
}
]
I want the data ids in this format ["1,2"]
in TypeScript, please help me in this case.