MCPcopy Create free account
hub / github.com/ampproject/amphtml / encode

Function encode

extensions/amp-analytics/0.1/linker.js:192–194  ·  view source on GitHub ↗

* Function that encodesURIComponent but also tilde, since we are using it as * our delimiter. * @param {string} value * @return {*} TODO(#23582): Specify return type

(value)

Source from the content-addressed store, hash-verified

190 * @return {*} TODO(#23582): Specify return type
191 */
192function encode(value) {
193 return base64UrlEncodeFromString(String(value));
194}
195
196/**
197 * @param {string} value

Callers 1

serializeFunction · 0.70

Calls 2

StringFunction · 0.50

Tested by

no test coverage detected