isNativeFunction.js 352 B

12345678910
  1. import _indexOfInstanceProperty from "core-js-pure/features/instance/index-of.js";
  2. function _isNativeFunction(t) {
  3. try {
  4. var _context;
  5. return -1 !== _indexOfInstanceProperty(_context = Function.toString.call(t)).call(_context, "[native code]");
  6. } catch (n) {
  7. return "function" == typeof t;
  8. }
  9. }
  10. export { _isNativeFunction as default };