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