@zodash/to-path
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.1.4](https://github.com/zcorky/zodash/compare/@zodash/to-path@0.1.3...@zodash/to-path@0.1.4) (2021-03-23) | ||
**Note:** Version bump only for package @zodash/to-path | ||
## 0.1.3 (2020-11-11) | ||
@@ -8,0 +16,0 @@ |
@@ -0,1 +1,21 @@ | ||
/** | ||
* Transform path string to path array | ||
* | ||
* @param pathString path string | ||
* @returns path array | ||
* | ||
* @example | ||
* | ||
* toPath('a.b.c') | ||
* // => ['a', 'b', 'c'] | ||
* | ||
* toPath('a[0].b.c') | ||
* // => ['a', '0', 'b', 'c'] | ||
* | ||
* toPath('a.0.b.c') | ||
* // => ['a', '0', 'b', 'c'] | ||
* | ||
* toPath('a[].b.c') | ||
* // => ['a', '[]', 'b', 'c'] | ||
*/ | ||
export declare function toPath(pathString: string): string[]; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toPath = void 0; | ||
/** | ||
* Transform path string to path array | ||
* | ||
* @param pathString path string | ||
* @returns path array | ||
* | ||
* @example | ||
* | ||
* toPath('a.b.c') | ||
* // => ['a', 'b', 'c'] | ||
* | ||
* toPath('a[0].b.c') | ||
* // => ['a', '0', 'b', 'c'] | ||
* | ||
* toPath('a.0.b.c') | ||
* // => ['a', '0', 'b', 'c'] | ||
* | ||
* toPath('a[].b.c') | ||
* // => ['a', '[]', 'b', 'c'] | ||
*/ | ||
function toPath(pathString) { | ||
@@ -5,0 +25,0 @@ if (!pathString) |
{ | ||
"name": "@zodash/to-path", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Transform path string to path array", | ||
@@ -69,3 +69,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "fb0b997fc51fbad9866a754bf8609d0bcc962700" | ||
"gitHead": "36ae103b292f402d459b7c9eb6e63fe6ea93eb2b" | ||
} |
Sorry, the diff of this file is not supported yet
5990
7
53