react-carousel-query
Version:
A infinite carousel component made with react that handles the pagination for you.
19 lines (14 loc) • 442 B
JavaScript
;
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;
};