4504f09f RK |
1 | function objectToUrlEncoded (obj: any) { |
2 | const str: string[] = [] |
3 | for (const key of Object.keys(obj)) { |
4 | str.push(encodeURIComponent(key) + '=' + encodeURIComponent(obj[key])) |
5 | } |
6 | |
7 | return str.join('&') |
8 | } |
9 | |
10 | export { |
11 | objectToUrlEncoded |
12 | } |