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

Function install

src/polyfills/string-starts-with.js:20–29  ·  view source on GitHub ↗
(win)

Source from the content-addressed store, hash-verified

18 * @param {!Window} win
19 */
20export function install(win) {
21 if (!win.String.prototype.startsWith) {
22 win.Object.defineProperty(win.String.prototype, 'startsWith', {
23 enumerable: false,
24 configurable: true,
25 writable: true,
26 value: startsWith,
27 });
28 }
29}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected