Getting a URL Parameter
Assuming URL is: http://bfotool.com?size=L&color=red&price=10
Use URLSearchParams to parsing
Call any of its methods on the result.
Checking for the Presence of a Parameter
use URLSearchParams.has()
Assuming URL is: http://bfotool.com?size=L&color=red&price=10
Use URLSearchParams to parsing
Call any of its methods on the result.