Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/lookup-by-path > LookupByPath > groupByChild

LookupByPath.groupByChild() 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:

groupByChild<TInfo>(infoByPath: Map<string, TInfo>, delimiter?: string): Map<TItem, Map<string, TInfo>>;

Parameters

Parameter

Type

Description

infoByPath

Map<string, TInfo>

delimiter

string

(Optional)

Returns:

Map<TItem, Map<string, TInfo>>