blob: dd01740af13fe43bd2b136b1a022e210f32b9f72 [file] [log] [blame]
Tim van der Lippefdbd42e2020-04-07 15:14:36 +01001'use strict';
2
3var define = require('define-properties');
4var getPolyfill = require('./polyfill');
5
6module.exports = function shimArrayPrototypeIncludes() {
7 var polyfill = getPolyfill();
8 define(
9 Array.prototype,
10 { includes: polyfill },
11 { includes: function () { return Array.prototype.includes !== polyfill; } }
12 );
13 return polyfill;
14};