UNPKG

@commodo/name

Version:

Decorates a function (and its instances) with a name, that can be used for various purposes.

18 lines (14 loc) 307 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; const getName = value => { if (value && value.__withName) { return value.__withName; } return ""; }; var _default = getName; exports.default = _default; //# sourceMappingURL=getName.js.map