mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00

PR-URL: https://github.com/nodejs/node/pull/53839 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com>
15 lines
335 B
JavaScript
15 lines
335 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = _isNativeFunction;
|
|
function _isNativeFunction(fn) {
|
|
try {
|
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
} catch (_e) {
|
|
return typeof fn === "function";
|
|
}
|
|
}
|
|
|
|
//# sourceMappingURL=isNativeFunction.js.map
|