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:
330 bytes
|
Line | |
---|
1 | import _indexOfInstanceProperty from "core-js-pure/features/instance/index-of.js";
|
---|
2 | export default 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 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.