All challenges

JavaScript challenge · Frontend

Unsquash Object

Difficulty

medium

Time

~25m

Format

Single

Grading

Auto-graded

#frontend#javascript#typescript#objects
Mission file // read carefullymedium

Implement unsquash(flat) — the inverse of Squash Object: expand dot-separated keys back into a nested object.

unsquash({ 'a.b': 1, 'a.c.d': 2 }) // => { a: { b: 1, c: { d: 2 } } }

Build with

TypeScriptJavaScript
Hidden test suite
Auto-graded on submit
Start challenge

Sign in to save your progress.