Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/lookup-by-path > IReadonlyLookupByPath > get

IReadonlyLookupByPath.get() 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.

Retrieves the entry that exists exactly at the specified path, if any.

Signature:

get(query: string, delimiter?: string): TItem | undefined;

Parameters

Parameter

Type

Description

query

string

delimiter

string

(Optional)

Returns:

TItem | undefined

The entry that exists exactly at the specified path, or undefined if no entry exists.