FareHarbor Interview Question

How do you flatten a JavaScript object?