source: node_modules/@babel/runtime/helpers/esm/isNativeFunction.js@ d24f17c

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

Initial commit

  • Property mode set to 100644
File size: 185 bytes
Line 
1export default function _isNativeFunction(fn) {
2 try {
3 return Function.toString.call(fn).indexOf("[native code]") !== -1;
4 } catch (e) {
5 return typeof fn === "function";
6 }
7}
Note: See TracBrowser for help on using the repository browser.