Engrain by ByteRush

JS.16.04 Mid-levelCore — asked often

get, set and flatten/unflatten object paths

Comes up in: Coding

This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.

What it covers

  • path strings a.b[0].c and arrays
  • default value
  • creating intermediate arrays vs objects
  • flatten nested object to dotted keys and back

Words you will know

path

What you will practise

  • implement four functions

Interview questions this answers

  • Flatten a nested object into dot-notation keys and back.