DEV Community

Discussion on: 20 Killer JavaScript One Liners ☝️

Collapse
 
dacurse profile image
DaCurse

For 2, I think converting to an object is pointless, nothing wrong with the URLSearchParams object (which is basically a Map)

Collapse
 
siddharthshyniben profile image
Siddharth

But it's not an actual object (like arguments is not an actual array), so If you want to do some advanced object stuff you need to convert it to an object.