AdvancedJavaScript

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

Output

Click 'Run Code' to see the output