Files
e-tib.com/node_modules/.pnpm/graphql@16.13.2/node_modules/graphql/jsutils/printPathArray.js
Marc Mintel d14122005d Initial commit: E-TIB production hardening & E2E foundation
Former-commit-id: ef04fca3d76375630c05aac117bf586953f3b657
2026-04-28 19:11:38 +02:00

18 lines
329 B
JavaScript

'use strict';
Object.defineProperty(exports, '__esModule', {
value: true,
});
exports.printPathArray = printPathArray;
/**
* Build a string describing the path.
*/
function printPathArray(path) {
return path
.map((key) =>
typeof key === 'number' ? '[' + key.toString() + ']' : '.' + key,
)
.join('');
}