Initial Save
This commit is contained in:
14
node_modules/graphql/jsutils/printPathArray.js.flow
generated
vendored
Normal file
14
node_modules/graphql/jsutils/printPathArray.js.flow
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
// @flow strict
|
||||
|
||||
/**
|
||||
* Build a string describing the path.
|
||||
*/
|
||||
export default function printPathArray(
|
||||
path: $ReadOnlyArray<string | number>,
|
||||
): string {
|
||||
return path
|
||||
.map(key =>
|
||||
typeof key === 'number' ? '[' + key.toString() + ']' : '.' + key,
|
||||
)
|
||||
.join('');
|
||||
}
|
||||
Reference in New Issue
Block a user