Do you know a fast and simple way to encode a Javascript Object into a string that I can pass via a GET Request?
string
GET
No jQuery, no
jQuery
In ES7 you can write this in one line:
const serialize = (obj) => (Object.entries(obj).map(i => [i[0], encodeURIComponent(i[1])].join('=')).join('&'))