Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DavidWells/analytics
/ paramsGet
Function
paramsGet
packages/analytics-utils/src/paramsGet.js:9–11 ·
view source on GitHub ↗
(param, url)
Source
from the content-addressed store, hash-verified
7
* @
return
{string} match
8
*/
9
export
function
paramsGet(param, url) {
10
return
decodeUri((RegExp(`${param}=(.+?)(&|$)`).exec(url) || [,
''
])[1])
11
}
Callers
nothing calls this directly
Calls
1
decodeUri
Function · 0.90
Tested by
no test coverage detected