isNativeFunction.js 428 B

12345678910
  1. var _indexOfInstanceProperty = require("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. module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;