summaryrefslogtreecommitdiff
path: root/node_modules/@babel/runtime/helpers/isNativeFunction.js
blob: c9d7e07f4b609fd7e69eec887c3191deac3d6468 (plain)
1
2
3
4
5
6
7
8
function _isNativeFunction(fn) {
  try {
    return Function.toString.call(fn).indexOf("[native code]") !== -1;
  } catch (e) {
    return typeof fn === "function";
  }
}
module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;