|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
445 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | var NATIVE_BIND = require('../internals/function-bind-native');
|
|---|
| 3 |
|
|---|
| 4 | var FunctionPrototype = Function.prototype;
|
|---|
| 5 | var call = FunctionPrototype.call;
|
|---|
| 6 | // eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|---|
| 7 | var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
|
|---|
| 8 |
|
|---|
| 9 | module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|---|
| 10 | return function () {
|
|---|
| 11 | return call.apply(fn, arguments);
|
|---|
| 12 | };
|
|---|
| 13 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.