I\'m using a JS library, specifically select2 that acts a tad differently than I\'d like if the objects I\'m passing it aren\'t plain objects. This is all checked b
select2
Something like this is simple and it works :
let plainObj; try { plainObj = JSON.parse(JSON.stringify(obj)); } catch(e) { console.error(e) }