github-pages-deploy-action/node_modules/graphql/jsutils/printPathArray.js

16 lines
323 B
JavaScript
Raw Normal View History

2020-03-07 11:45:40 +08:00
"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('');
}