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

Function install

src/polyfills/array-includes.js:30–39  ·  view source on GitHub ↗
(win)

Source from the content-addressed store, hash-verified

28 * @param {!Window} win
29 */
30export function install(win) {
31 if (!win.Array.prototype.includes) {
32 win.Object.defineProperty(win.Array.prototype, 'includes', {
33 enumerable: false,
34 configurable: true,
35 writable: true,
36 value: includes,
37 });
38 }
39}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected