diff --git a/src/util/toPath.js b/src/util/toPath.js index c0afbc4b726e..3271d4e9bd01 100644 --- a/src/util/toPath.js +++ b/src/util/toPath.js @@ -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'] @@ -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