Home > @rushstack/lookup-by-path > LookupByPath > getNodeAtPrefix
LookupByPath.getNodeAtPrefix() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
The readonly component of LookupByPath, to simplify unit testing.
Signature:
getNodeAtPrefix(query: string, delimiter?: string): IReadonlyPathTrieNode<TItem> | undefined;
Parameters
Parameter | Type | Description |
|---|---|---|
query | string | |
delimiter | string | (Optional) |
Returns:
IReadonlyPathTrieNode<TItem> | undefined