29 lines
637 B
JavaScript
29 lines
637 B
JavaScript
// Module ID: 605
|
|
// Function ID: 606
|
|
// Name: isFunction
|
|
// Dependencies: [606, 607]
|
|
|
|
// Module 605 (isFunction)
|
|
import isObject from "isObject" /* 606 */;
|
|
import toStringTag from "toStringTag" /* 607 */;
|
|
|
|
|
|
export default function isFunction(arg0) {
|
|
if (isObject(arg0)) {
|
|
const tmp3 = toStringTag(arg0);
|
|
let tmp4 = "[object Function]" == tmp3;
|
|
if (!tmp4) {
|
|
tmp4 = "[object GeneratorFunction]" == tmp3;
|
|
}
|
|
if (!tmp4) {
|
|
tmp4 = "[object AsyncFunction]" == tmp3;
|
|
}
|
|
if (!tmp4) {
|
|
tmp4 = "[object Proxy]" == tmp3;
|
|
}
|
|
return tmp4;
|
|
} else {
|
|
return false;
|
|
}
|
|
const tmp = require;
|
|
};
|