0
Free MOCK
Apply Internship
Blog
Learning
Roadmap
Others
Login
Advanced
JavaScript
Flatten a nested object
Write a function to flatten a deeply nested object.
Examples
Input:
{a: {b: {c: 1}}}
Output:
{"a.b.c": 1}
Your Solution
Show Solution
Reset
Output
Run Code
Click 'Run Code' to see the output