79532069

Date: 2025-03-24 20:26:24
Score: 0.5
Natty:
Report link

URLSearchParams is an iterable. If you log it with your example you should see something like URLSearchParams {size: 2} in the console.

To get a plain object you can do Object.fromEntries(params) to get an object with the values (or empty if there are no params).

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Fernando Flores