source: imaps-frontend/node_modules/array.prototype.flatmap/shim.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 414 bytes
Line 
1'use strict';
2
3var define = require('define-properties');
4var shimUnscopables = require('es-shim-unscopables');
5
6var getPolyfill = require('./polyfill');
7
8module.exports = function shimFlatMap() {
9 var polyfill = getPolyfill();
10
11 define(
12 Array.prototype,
13 { flatMap: polyfill },
14 { flatMap: function () { return Array.prototype.flatMap !== polyfill; } }
15 );
16
17 shimUnscopables('flatMap');
18
19 return polyfill;
20};
Note: See TracBrowser for help on using the repository browser.