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
|
|
|
}
|