From 880965e2798b00f9f4a2931bb6977d3dfb6b3b66 Mon Sep 17 00:00:00 2001 From: nlepage Date: Thu, 7 Sep 2017 01:32:04 +0200 Subject: [PATCH] :bulb: Example --- src/core/toPath.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/toPath.js b/src/core/toPath.js index bac0b836..c32a6ef8 100644 --- a/src/core/toPath.js +++ b/src/core/toPath.js @@ -199,6 +199,7 @@ const memoizedStringToPath = str => { * @return {(string|number)[]} The path represented as an array of keys * @memberof core * @since 0.4.0 + * @example toPath('a.b[1]["."][1:-1]') // => ['a', 'b', 1, '.', [1, -1]] */ const toPath = allowingArrays(arg => [...memoizedStringToPath(arg)])