decord/source/597_isFunction.js

26 lines
555 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 597
// Function ID: 7023
// Name: isFunction
2026-07-23 10:11:24 +00:00
// Dependencies: [573, 578]
2026-07-20 16:05:17 +00:00
// Module 597 (isFunction)
export default function isFunction(arg0) {
2026-07-23 10:11:24 +00:00
if (require(573) /* isObject */(arg0)) {
const tmp3 = require(578) /* getTag */(arg0);
2026-07-20 16:05:17 +00:00
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;
}
};