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

Function messageArgToEncodedComponent

src/utils/log.js:93–94  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

91 * @return {string}
92 */
93const messageArgToEncodedComponent = (arg) =>
94 encodeURIComponent(String(elementStringOrPassThru(arg)));
95
96/**
97 * @param {!Window=} opt_win

Callers 1

externalMessageUrlFunction · 0.85

Calls 2

elementStringOrPassThruFunction · 0.90
StringFunction · 0.50

Tested by

no test coverage detected