1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js

7 lines
185 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
export default function _isNativeFunction(fn) {
2024-01-16 21:26:16 +08:00
try {
return Function.toString.call(fn).indexOf("[native code]") !== -1;
} catch (e) {
return typeof fn === "function";
}
2023-12-18 13:12:25 +08:00
}