Sha256: 8b0e44dc34e593ec42643aeabe7a27c5c5be7804353aba704caa64d5dcea0c3b

Contents?: true

Size: 442 Bytes

Versions: 40

Compression:

Stored size: 442 Bytes

Contents

'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;
};

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/array.prototype.findlastindex/shim.js
immosquare-cleaner-0.1.50 node_modules/array.prototype.findlastindex/shim.js
immosquare-cleaner-0.1.49 node_modules/array.prototype.findlastindex/shim.js
immosquare-cleaner-0.1.48 node_modules/array.prototype.findlastindex/shim.js
immosquare-cleaner-0.1.47 node_modules/array.prototype.findlastindex/shim.js
immosquare-cleaner-0.1.46 node_modules/array.prototype.findlastindex/shim.js
immosquare-cleaner-0.1.45 node_modules/array.prototype.findlastindex/shim.js
immosquare-cleaner-0.1.44 node_modules/array.prototype.findlastindex/shim.js
immosquare-cleaner-0.1.43 node_modules/array.prototype.findlastindex/shim.js
immosquare-cleaner-0.1.42 node_modules/array.prototype.findlastindex/shim.js
immosquare-cleaner-0.1.41 node_modules/array.prototype.findlastindex/shim.js
immosquare-cleaner-0.1.40 node_modules/array.prototype.findlastindex/shim.js
immosquare-cleaner-0.1.39 node_modules/array.prototype.findlastindex/shim.js
immosquare-cleaner-0.1.38 node_modules/array.prototype.findlastindex/shim.js
immosquare-cleaner-0.1.32 node_modules/array.prototype.findlastindex/shim.js
immosquare-cleaner-0.1.31 node_modules/array.prototype.findlastindex/shim.js
immosquare-cleaner-0.1.30 node_modules/array.prototype.findlastindex/shim.js
immosquare-cleaner-0.1.29 node_modules/array.prototype.findlastindex/shim.js
immosquare-cleaner-0.1.28 node_modules/array.prototype.findlastindex/shim.js
immosquare-cleaner-0.1.27 node_modules/array.prototype.findlastindex/shim.js