UNPKG

495 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.PathComposer = void 0;
4class PathComposer {
5 constructor(targetAttribute) {
6 this.targetAttribute = targetAttribute;
7 }
8 getPath(elementsSummary) {
9 return elementsSummary
10 .map((elemensSummary) => elemensSummary.attributes[this.targetAttribute])
11 .filter((attribute) => attribute !== undefined)
12 .join('.');
13 }
14}
15exports.PathComposer = PathComposer;