decord/source/597_isFunction.js
2026-07-23 10:11:24 +00:00

25 lines
555 B
JavaScript

// Module ID: 597
// Function ID: 7023
// Name: isFunction
// Dependencies: [573, 578]
// Module 597 (isFunction)
export default function isFunction(arg0) {
if (require(573) /* isObject */(arg0)) {
const tmp3 = require(578) /* getTag */(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;
}
};