Initial Save
This commit is contained in:
15
node_modules/graphql/jsutils/printPathArray.js
generated
vendored
Normal file
15
node_modules/graphql/jsutils/printPathArray.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
"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('');
|
||||
}
|
||||
Reference in New Issue
Block a user