How to convert url array query to object in Javascript

I have an URL with query params like this: myLocalSite/?attributes%5B0%5D%5Bname%5D=customer_property_number&attributes%5B0%5D%5Bop%5D=equal&attributes%5B0%5D%5Bvalue%5D=12&attributes%5B1%5D%5Bname%5D=feedback_tags&attributes%5B1%5D%5Bop%5D=in&attributes%5B1%5D%5Bvalue%5D=test+1%2Cwww after JSON parsing it convert into next structure { attributes[0][name]: “customer_property_number” attributes[0][op]: “equal” attributes[0][value]: “12” attributes[1][name]: “feedback_tags” attributes[1][op]: “in” attributes[1][value]: “test 1,www” } In the end, I need an array that look like this: attributes = [ { name: ‘customer_property_number’, op: ‘equal’, value: ’12’, },…

Details

How to set value in Select2 using database data in codeigniter

I really need help on my problem, i am trying to set a value in my select2 using the data that i had fetch in my database using ajax. here is my view in select2 <select multiple id=”multiple_assigned” style=”width:300px”> <option value=”1″>Test1</option> <option value=”2″>Test2</option> <option value=”3″>Test3</option> <option value=”4″>Test4</option> <option value=”5″>Test5</option> <option value=”6″>Test6</option> <option value=”7″>Test7</option> <option value=”8″>Test8</option>…

Details

Using Webpack, how to dynamically load an external module built with another Webpack

Let’s say I manage 2 JavaScript projects both built with Webpack: A Website called User-Website A JavaScript module called External-Module Note that I’m using 2 separate projets for the same reasons described by the Micro Front end architecture. I want my User-Website to be able to dynamically load External-Module on demand (using any JavaScript module…

Details