isNativeFunction.js 369 B

123456
  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, module.exports.__esModule = true, module.exports["default"] = module.exports;