astro-ghostcms/.pnpm-store/v3/files/91/ffef4281f33987eab6388cd4511...

19 lines
442 B
Plaintext

'use strict';
var define = require('define-properties');
var getPolyfill = require('./polyfill');
var shimUnscopables = require('es-shim-unscopables');
module.exports = function shimFindLastIndex() {
var polyfill = getPolyfill();
define(
Array.prototype,
{ findLastIndex: polyfill },
{ findLastIndex: function () { return Array.prototype.findLastIndex !== polyfill; } }
);
shimUnscopables('findLastIndex');
return polyfill;
};