source:
node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
Last change on this file was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 185 bytes |
Rev | Line | |
---|---|---|
[d24f17c] | 1 | export 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.