1234567891011121314 |
- 'use strict';
- var define = require('define-properties');
- var getPolyfill = require('./polyfill');
- module.exports = function shimFlatMap() {
- var polyfill = getPolyfill();
- define(
- Array.prototype,
- { flatMap: polyfill },
- { flatMap: function () { return Array.prototype.flatMap !== polyfill; } }
- );
- return polyfill;
- };
|