Skip to content

Commit b7fd473

Browse files
committed
Cleanup
1 parent f255d9f commit b7fd473

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/util/toPath.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Square bracket notation `a[b]` may be used to "escape" dots that would otherwise be interpreted as path separators.
55
*
6-
* Axample:
6+
* Example:
77
* a -> ['a]
88
* a.b.c -> ['a', 'b', 'c']
99
* a[b].c -> ['a', 'b', 'c']
@@ -15,9 +15,7 @@
1515
export function toPath(path) {
1616
if (Array.isArray(path)) return path
1717

18-
// The general outline of a path string is as follows:
19-
// property.another[some.other.property.with.dots][0][0].and.so.on
20-
// Properties may be separated by dots, optionally enclosed in brackets, can access array elements, etc...
18+
// The general outline/properties of a path string:
2119

2220
// Tokens:
2321
// [ = lb

0 commit comments

Comments
 (0)