amis-rpc-design/node_modules/core-js/internals/function-uncurry-this-clause.js
2023-10-07 19:42:30 +08:00

11 lines
359 B
JavaScript

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