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

Function stripPrefixCamelCase

3p/twitter.js:115–118  ·  view source on GitHub ↗

* @param {string} input * @param {string} prefix * @return {*} TODO(#23582): Specify return type

(input, prefix)

Source from the content-addressed store, hash-verified

113 * @return {*} TODO(#23582): Specify return type
114 */
115 function stripPrefixCamelCase(input, prefix) {
116 const stripped = input.replace(new RegExp('^' + prefix), '');
117 return stripped.charAt(0).toLowerCase() + stripped.substr(1);
118 }
119}
120
121/**

Callers 1

twitterFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected