object-hierarchy-access
Version:
Get/Set value from/to JS object hierarchy properties
8 lines (7 loc) • 459 B
TypeScript
declare function set(optionalTarget: any, ...others: any[]): any;
declare function assign(target: any, ...others: any[]): any;
declare function put(target: any, ...others: any[]): any;
declare function setIfUndef(optionalTarget: any, ...others: any[]): any;
declare function assignIfUndef(target: any, ...others: any[]): any;
declare function putIfUndef(target: any, ...others: any[]): any;
export { set, assign, put, setIfUndef, assignIfUndef, putIfUndef };