Write a function flattenObject(obj) that flattens a deeply nested object into a single-level object, using dot notation for nested keys. | Code | javascript Interview Questions | NextRound.in
Write a function flattenObject(obj) that flattens a deeply nested object into a single-level object, using dot notation for nested keys.