isNativeFunction.js 372 B

12345678910
  1. var _indexOfInstanceProperty = require("@babel/runtime-corejs3/core-js/instance/index-of");
  2. function _isNativeFunction(fn) {
  3. var _context;
  4. return _indexOfInstanceProperty(_context = Function.toString.call(fn)).call(_context, "[native code]") !== -1;
  5. }
  6. module.exports = _isNativeFunction;
  7. module.exports["default"] = module.exports, module.exports.__esModule = true;