decord/source/605_isFunction.js

27 lines
554 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 605
// Function ID: 606
2026-07-20 16:05:17 +00:00
// Name: isFunction
2026-07-29 08:29:29 +00:00
// Dependencies: [606, 607]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 605 (isFunction)
2026-07-20 16:05:17 +00:00
export default function isFunction(arg0) {
2026-07-29 08:29:29 +00:00
if (require(606) /* isObject */(arg0)) {
const tmp3 = tmp(607)(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;
}
2026-07-29 08:29:29 +00:00
tmp = require;
2026-07-20 16:05:17 +00:00
};