Methods
add
- add(path: string, value: T): void
Private createNode
- createNode(key: string, lastIndex: number, index: number, value: T, parentNode: IPathNode<T>): IPathNode<T>
-
Parameters
-
key: string
-
lastIndex: number
-
index: number
-
value: T
-
Private removeExtraSlashes
- removeExtraSlashes(path: string): string
-
Parameters
Returns string
Object literals
Private rootNode
rootNode: object
children
children: object
PathTree - represents a path as a tree structure