function-uncurry-this.js 325 B

123456789101112
  1. var FunctionPrototype = Function.prototype;
  2. var bind = FunctionPrototype.bind;
  3. var call = FunctionPrototype.call;
  4. var callBind = bind && bind.bind(call);
  5. module.exports = bind ? function (fn) {
  6. return fn && callBind(call, fn);
  7. } : function (fn) {
  8. return fn && function () {
  9. return call.apply(fn, arguments);
  10. };
  11. };