Home
Premium · ₹999
← Top 20 questions
15.
Convert a nested object into a flat key-value pair dictionary
Medium
Mark as solved
Maximize editor
Description
Code
Description
Solution
Flatten using dot notation. Example: { a: { b: { c: 1 } } } → { 'a.b.c': 1 }
JAVASCRIPT
code
console
Ctrl+Enter run
A−
A+
Loading...
Console
Run code to see output
Top 20 JavaScript Interview Questions for FAANG & Product Companies | Mentoxis Resources | Mentoxis