main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
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.