Rush StackShopBlogEvents
Skip to main content

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

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

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