Home > @infiniteobjects/top-shot-service > valueOrNull
Given a object and a path Return the obj path value, or null.
Signature:
export declare function valueOrNull<T>(obj: T): (path: string | string[]) => any;
Parameter | Type | Description |
---|---|---|
obj | T |
Returns:
(path: string | string[]) => any