source: node_modules/@babel/runtime-corejs3/helpers/isNativeFunction.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 432 bytes
Line 
1var _indexOfInstanceProperty = require("core-js-pure/features/instance/index-of.js");
2function _isNativeFunction(fn) {
3 try {
4 var _context;
5 return _indexOfInstanceProperty(_context = Function.toString.call(fn)).call(_context, "[native code]") !== -1;
6 } catch (e) {
7 return typeof fn === "function";
8 }
9}
10module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
Note: See TracBrowser for help on using the repository browser.