source: imaps-frontend/node_modules/array.prototype.findlast/shim.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 417 bytes
Line 
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};
Note: See TracBrowser for help on using the repository browser.