splitPath
Splits a path into segments, supporting both dot notation and bracket notation.
Handles:
- Dot notation:
parent.child.grandchild - Bracket notation:
items[0].quantity - Mixed notation:
items[0].address.city
Presentation
function splitPath (path: string): string[];Returns
string[] -Array of path segments
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | The path to split |