Loading homepage
Clean an object by returning a new object containing only properties whose values are truthy.
Input: compactObject({ count: 0, label: "Ready", enabled: false }) Output: { label: "Ready" }
Input: compactObject({ nested: { empty: null }, items: [] }) Output: { nested: { empty: null }, items: [] }
Implement the exported function in index.js or index.ts. See requirements for edge cases.