Home > @rushstack/lookup-by-path > IReadonlyLookupByPath > has
IReadonlyLookupByPath.has() 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.
Determines if an entry exists exactly at the specified path.
Signature:
has(query: string, delimiter?: string): boolean;
Parameters
Parameter | Type | Description |
|---|---|---|
query | string | |
delimiter | string | (Optional) |
Returns:
boolean
true if an entry exists at the specified path, false otherwise