source: imaps-frontend/node_modules/array.prototype.findlast/index.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: 778 bytes
Line 
1'use strict';
2
3var define = require('define-properties');
4var callBind = require('call-bind');
5var callBound = require('call-bind/callBound');
6var RequireObjectCoercible = require('es-object-atoms/RequireObjectCoercible');
7
8var implementation = require('./implementation');
9var getPolyfill = require('./polyfill');
10var polyfill = getPolyfill();
11var shim = require('./shim');
12
13var $slice = callBound('Array.prototype.slice');
14
15var bound = callBind.apply(polyfill);
16// eslint-disable-next-line no-unused-vars
17var boundFindLast = function findLast(array, predicate) {
18 RequireObjectCoercible(array);
19 return bound(array, $slice(arguments, 1));
20};
21
22define(boundFindLast, {
23 getPolyfill: getPolyfill,
24 implementation: implementation,
25 shim: shim
26});
27
28module.exports = boundFindLast;
Note: See TracBrowser for help on using the repository browser.