- setObjValueByPath<T, P, S, NO_START, Path>(obj, path, value, onExist?, objName?): T
类型参数
- T extends object
- P extends string
- S extends string = ""
- NO_START extends string = DotTrim<RemoveStrStart<P, S>>
- Path extends string = TransferPath<NO_START>
参数
- obj: T
- path: TransferPathOf<T, P, S>
- value: TypeOfPath<T, Path>
- onExist: SetObjValueByPathOnExist = ...
可选
objName: S = ...
返回 T
通过object路径设置值 如果路径中不存在则会自动创建对应的对象
支持类型推导检测