1let items = 'key1:value1;key2:value2;key3:value3';
2let items_array = items.split(';');
3let final_items = items_array.map(item => item.split(':'));
4// [ [ key1, value1 ], [ key2, value2 ], [ key3, value3 ] ]
5
6let final_result = Object.fromEntries(final_items);
7// { "key1" : "value1", "key2" : "value2", "key3" : "value3" }