UNPKG

structured-elements

Version:

A TypeScript package for modelling and validating data

11 lines 350 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.buildElementPath = void 0; const buildElementPath = ({ key, path, }) => { if (typeof key === `string`) { return `${path}.${key}`; } return `${path}[${key}]`; }; exports.buildElementPath = buildElementPath; //# sourceMappingURL=elementPath.js.map