MCPcopy
hub / github.com/ampproject/amphtml / addParamsToUrl

Function addParamsToUrl

src/url.js:239–241  ·  view source on GitHub ↗
(url, params)

Source from the content-addressed store, hash-verified

237 * @return {string}
238 */
239export function addParamsToUrl(url, params) {
240 return appendEncodedParamStringToUrl(url, serializeQueryString(params));
241}
242
243/**
244 * Append query string fields and values to a url, only if the key does not

Callers 15

test-url.jsFile · 0.90
applyResponseFunction · 0.90
getExtraParamsUrlFunction · 0.90
BentoYoutubeWithRefFunction · 0.90
component.jsFile · 0.90
getVimeoIframeSrcFunction · 0.90
makeJwplayerIframeSrcFunction · 0.90
getBrightcoveIframeSrcFunction · 0.90
getDailymotionIframeSrcFunction · 0.90
maybeExpandLinkMethod · 0.90
getEncodedLocation_Method · 0.90
viralizeFunction · 0.90

Calls 2

serializeQueryStringFunction · 0.85

Tested by

no test coverage detected