Home > @microsoft/rush-lib > LookupByPath > setItemFromSegments
LookupByPath.setItemFromSegments() method
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Associates the value with the specified path. If a value is already associated, will overwrite.
Signature:
setItemFromSegments(pathSegments: Iterable<string>, value: TItem): this;
Parameters
Parameter | Type | Description |
---|---|---|
pathSegments | Iterable<string> | |
value | TItem |
Returns:
this
this, for chained calls