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
|
Rev | Line | |
---|
[d24f17c] | 1 | var _indexOfInstanceProperty = require("core-js-pure/features/instance/index-of.js");
|
---|
| 2 | function _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 | }
|
---|
| 10 | module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports; |
---|
Note:
See
TracBrowser
for help on using the repository browser.