Sign in
chromium
/
external
/
github.com
/
SeleniumHQ
/
selenium
/
refs/heads/api-docs-4.30.0-all
/
.
/
node_modules
/
graphql
/
jsutils
/
printPathArray.mjs
blob: 410921272659dff62cf5c52d850d0277ef4026e3 [
file
] [
log
] [
blame
] [
edit
]
/**
* Build a string describing the path.
*/
export
function
printPathArray
(
path
)
{
return
path
.
map
((
key
)
=>
typeof
key
===
'number'
?
'['
+
key
.
toString
()
+
']'
:
'.'
+
key
,
)
.
join
(
''
);
}