source: node_modules/@babel/runtime/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: 284 bytes
Line 
1function _isNativeFunction(fn) {
2 try {
3 return Function.toString.call(fn).indexOf("[native code]") !== -1;
4 } catch (e) {
5 return typeof fn === "function";
6 }
7}
8module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
Note: See TracBrowser for help on using the repository browser.