UNPKG

409 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const lodash_1 = require("../../wrap/lodash");
4function fakeName(path, realThing) {
5 return `${path}: ${nameFor(realThing)}`;
6}
7exports.default = fakeName;
8const nameFor = (realThing) => {
9 if (!lodash_1.default.isFunction(realThing))
10 return '';
11 return realThing.name ? realThing.name : '(anonymous function)';
12};