I've got a question, how to get a value to find it by id?
Eg I got something like: "{section,249013: 'some value', section,244242: 'another value'}
" and I need to put it into the object
const someObject = [
section: {
id: 249013,
options: [someArray],
values: I need to insert value here
},
section: {
id: 244242,
options: [someArray],
values: I need to insert another value here
}
]
Is there any way to do it?