import { gets } from 'deleight/object/shared'
import { object } from 'deleight/object/operations'
import { R } from 'deleight/proxies/return'
const obj1 = { a: 1, b: 2, c: 3 };
const obj2 = { some: { path: { a: 1, b: 2, c: 3 } } };
const obj3 = R(() => obj2.some.path);
const objects = { a: [obj1], b: [obj3], c: [obj1] };
const vals = object(gets(objects)); // { a: (1), b: (2), c: (3) }
Represents the return value of a function as an object. It is often useful for 'holding' objects deeply nested within other objects.