Diriector_Doc

URL parameters getter

Mar 11th, 2021 (edited)
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let urlParams=a=>(a={},new URLSearchParams(window.location.search).forEach((e,o)=>a[o]?"object"==typeof a[o]?a[o].push(e):a[o]=[a[o],e]:a[o]=e),a);
Add Comment
Please, Sign In to add comment