Public
Authored by Israel Gutierrez Salazar

Create query params

Edited
queryparams.js 341 Bytes
    • Función que puede ayudar
    let jsonToQueryParam = (obj) => {
        let esc = encodeURIComponent;
        let query = Object.keys(obj).map(k => esc(k) + '=' + esc(obj[k])).join('&');
        return query;
    };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment