mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 17:15:11 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
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('');
|
|
} |