mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
10 lines
352 B
JavaScript
10 lines
352 B
JavaScript
import _indexOfInstanceProperty from "core-js-pure/features/instance/index-of.js";
|
|
function _isNativeFunction(t) {
|
|
try {
|
|
var _context;
|
|
return -1 !== _indexOfInstanceProperty(_context = Function.toString.call(t)).call(_context, "[native code]");
|
|
} catch (n) {
|
|
return "function" == typeof t;
|
|
}
|
|
}
|
|
export { _isNativeFunction as default }; |