function-uncurry-this.js 355 B

123456789
  1. var classofRaw = require('../internals/classof-raw');
  2. var uncurryThisRaw = require('../internals/function-uncurry-this-raw');
  3. module.exports = function (fn) {
  4. // Nashorn bug:
  5. // https://github.com/zloirock/core-js/issues/1128
  6. // https://github.com/zloirock/core-js/issues/1130
  7. if (classofRaw(fn) === 'Function') return uncurryThisRaw(fn);
  8. };