projecte_ionic/node_modules/array.prototype.flat/shim.js
2022-02-09 18:30:03 +01:00

15 lines
315 B
JavaScript
Executable file

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