vue-app-sdk
Version:
17 lines (16 loc) • 638 B
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const _realNames = require("./_realNames.cjs");
var objectProto = Object.prototype;
var hasOwnProperty = objectProto.hasOwnProperty;
function getFuncName(func) {
var result = func.name + "", array = _realNames.default[result], length = hasOwnProperty.call(_realNames.default, result) ? array.length : 0;
while (length--) {
var data = array[length], otherFunc = data.func;
if (otherFunc == null || otherFunc == func) {
return data.name;
}
}
return result;
}
exports.default = getFuncName;