Destructure objects
by surrounding the left-hand variable with {}
nested
multiple objects
object and array
array and object
interesting
missing refs become undefined
destructure from builtins (string)
Required Knowledge
- `const` declaration (Block scope)
- basics (Object literal)
Related Katas
Destructuring
- array
- string
- object
- defaults
- parameters
- assign
Difficulty Level
BEGINNER
First Published
30 March 2015
Stats
6 tests to solve