merge-change
Version:
Advanced library for deep merging, patching, and immutable updates of data structures. Features declarative operations for specific merging behaviors, property management, custom type merging rules, and difference tracking. Supports complex data transform
8 lines (7 loc) • 343 B
TypeScript
/**
* Splits a path into array elements, ignoring (trimming) the separator at the beginning and end of the string
* @param path {string} Path to split
* @param separator {string} Separator, for example, a point
* @returns {(number|string)[]}
*/
export declare function splitPath(path: string, separator?: string): Array<string | number>;