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