github-pages-deploy-action/node_modules/graphql/jsutils/printPathArray.js
2020-03-06 22:45:40 -05:00

16 lines
323 B
JavaScript

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