Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Dec 15, 2021
1 parent f255d9f commit b7fd473
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/util/toPath.js
Expand Up @@ -3,7 +3,7 @@
*
* Square bracket notation `a[b]` may be used to "escape" dots that would otherwise be interpreted as path separators.
*
* Axample:
* Example:
* a -> ['a]
* a.b.c -> ['a', 'b', 'c']
* a[b].c -> ['a', 'b', 'c']
Expand All @@ -15,9 +15,7 @@
export function toPath(path) {
if (Array.isArray(path)) return path

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

// Tokens:
// [ = lb
Expand Down

0 comments on commit b7fd473

Please sign in to comment.