Home > @wixc3/common > getIn
Signature:
export declare function getIn(obj: Record<string, any>, path: string[]): unknown;
Parameter | Type | Description |
---|---|---|
obj | Record<string, any> | The object to query |
path | string\[\] | The path of the property to get. |
Returns:
unknown
The value at path
of object
id exists, undefined
otherwise
getIn({ a: { b: 'c' } }, ['a', 'b']) // => c