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 getPolyfill = require('./polyfill');5var shimUnscopables = require('es-shim-unscopables');6 7module.exports = function shimFindLast() {8	var polyfill = getPolyfill();9	define(10		Array.prototype,11		{ findLast: polyfill },12		{ findLast: function () { return Array.prototype.findLast !== polyfill; } }13	);14 15	shimUnscopables('findLast');16 17	return polyfill;18};19