main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
379 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 | var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
|
---|
7 |
|
---|
8 | module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
---|
9 | return function () {
|
---|
10 | return call.apply(fn, arguments);
|
---|
11 | };
|
---|
12 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.