Repository URL to install this package:
|
Version:
1.3.3 ▾
|
export const encodeBody = reqBody =>
Object.keys(reqBody)
.map(key => {
return encodeURIComponent(key) + '=' + encodeURIComponent(reqBody[key])
})
.join('&')