swc/crates/swc_bundler/tests/.cache/deno/b654fe628f534340c69d172782bfff51335db83e.ts
2021-11-09 20:42:49 +09:00

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('');
}