Allows for access to URL parameters.
If url is not specified, docment.location's .searchParams is used.
url
docment.location
const p = parseUrlParameters();// eg. gets an integer param called 'size`, using NaN as a defaultp.int(`size`);// As above, but will return 10 if 'size' is not specified in URL.p.int(`size`, 10);// Returns _true_ if 'engage' parameter is present and value is 'true'p.bool(`engage`); Copy
const p = parseUrlParameters();// eg. gets an integer param called 'size`, using NaN as a defaultp.int(`size`);// As above, but will return 10 if 'size' is not specified in URL.p.int(`size`, 10);// Returns _true_ if 'engage' parameter is present and value is 'true'p.bool(`engage`);
Optional
Allows for access to URL parameters.
If
urlis not specified,docment.location's .searchParams is used.