Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
💡 Example
Browse files Browse the repository at this point in the history
  • Loading branch information
nlepage committed Sep 6, 2017
1 parent 51e48cd commit 880965e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/toPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)])

Expand Down

0 comments on commit 880965e

Please sign in to comment.