As a newcomer to JavaScript, I am seeking a more efficient method for converting a list string into an object.
The service provides me with the following list, but I require it in object form for processing purposes. For example:
let objString = ['name=Antonio', 'phone=123-2312-3123', 'address=Paraiso'];
I aim to convert this list into an object like so:
objString = {
'name': 'Antonio',
'phone': '123-2312-3123',
'address': 'Paraiso',
}
Currently, I am unable to find a built-in JS method or simpler solution than using multiple loops for this conversion process.