function-uncurry-this-clause.js 359 B

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