decord/source/605_isFunction.js

30 lines
637 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-08-24 06:08:38 +00:00
import isObject from "isObject" /* 606 */;
import toStringTag from "toStringTag" /* 607 */;
2026-07-20 16:05:17 +00:00
export default function isFunction(arg0) {
2026-08-24 06:08:38 +00:00
if (isObject(arg0)) {
const tmp3 = toStringTag(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-08-24 06:08:38 +00:00
const tmp = require;
2026-07-20 16:05:17 +00:00
};