CoolFace
Apppublic

Umama-at-Bluchip/Quick-UI

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
1'use strict';2 3var define = require('define-properties');4var shimUnscopables = require('es-shim-unscopables');5 6var getPolyfill = require('./polyfill');7 8module.exports = function shimFlat() {9	var polyfill = getPolyfill();10 11	define(12		Array.prototype,13		{ flat: polyfill },14		{ flat: function () { return Array.prototype.flat !== polyfill; } }15	);16 17	shimUnscopables('flat');18 19	return polyfill;20};21