MCPcopy Index your code
hub / github.com/ClearURLs/Addon / countFields

Function countFields

core_js/tools.js:116–118  ·  view source on GitHub ↗

* Return the number of parameters query strings. * @param {String} url URL as String * @return {int} Number of Parameters

(url)

Source from the content-addressed store, hash-verified

114 * @return {int} Number of Parameters
115 */
116function countFields(url) {
117 return [...new URL(url).searchParams].length
118}
119
120/**
121 * Extract the fragments from an url.

Callers 2

clearUrlFunction · 0.85
_cleaningFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected