UNPKG

490 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const _ = require("lodash");
4function getClassAndMethodName(self, methodName) {
5 let result = getClassName(self);
6 if (result !== '') {
7 result += '.';
8 }
9 result += methodName;
10 return result;
11}
12exports.getClassAndMethodName = getClassAndMethodName;
13function getClassName(self) {
14 return _.get(self, 'name') || _.get(self, 'constructor.name', '');
15}
16exports.getClassName = getClassName;