function-uncurry-this-clause.js 345 B

123456789
  1. var classofRaw = require('../internals/classof-raw');
  2. var uncurryThis = require('../internals/function-uncurry-this');
  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 uncurryThis(fn);
  8. };