RoadmapShopEvents
Skip to main content

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

ParameterTypeDescription
pathSegmentsIterable<string>
valueTItem

Returns:

this

this, for chained calls