mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
9 lines
284 B
TypeScript
9 lines
284 B
TypeScript
// Loaded from https://deno.land/x/graphql_deno@v15.0.0/lib/jsutils/printPathArray.js
|
|
|
|
|
|
/**
|
|
* Build a string describing the path.
|
|
*/
|
|
export default function printPathArray(path) {
|
|
return path.map(key => typeof key === 'number' ? '[' + key.toString() + ']' : '.' + key).join('');
|
|
} |