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

8 lines
284 B
JavaScript
Raw Permalink Normal View History

2023-12-18 13:12:25 +08:00
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
}
2024-01-16 21:26:16 +08:00
module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;