Skip to content

Function: appendDotValues()

ts
function 
appendDotValues
(
obj
,
path
,
value
): void;

Defined in: packages/parser/src/utils.ts:117

Similar to setDotValues but handles duplicate keys by converting to arrays. Does NOT apply type conversion - value is set as-is. Useful for flags that can be specified multiple times.

Parameters

ParameterTypeDescription

obj

any

The target object

path

string

Dot-separated path (e.g., "foo.bar")

value

any

The value to set or append (used as-is, no type conversion)

Returns

void

在 MIT 许可证下发布