(obj: any, path: string)
| 6 | |
| 7 | /** Traverse an object by a dot-separated path string, e.g. `"a.b.c"`. */ |
| 8 | export function get(obj: any, path: string): any { |
| 9 | return path.split(".").reduce((res: any, key: string) => (res != null ? res[key] : res), obj) |
| 10 | } |
| 11 | |
| 12 | export const makeETag = <E extends PersistenceModelType<{}>>( |
| 13 | { _etag, ...e }: E |
no test coverage detected