Guest User

Untitled

a guest
Jun 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. const serialize = obj => Object.keys(obj).map(p => encodeURIComponent(p) + "=" + encodeURIComponent(obj[p])).join("&");
  2.  
  3. export {
  4. serialize
  5. };
Add Comment
Please, Sign In to add comment