ad5ba No.1985
using
.flat()
is a trap if the depth isn't constant. it might look cleaner, but you'll end up with spoilerruntime errors/spoenter on deeply nested structures that exceed your expected depth.
>the real challenge is doing it in under five lines of codehow are you handling the
edge cases where a key points to a null value instead of an object?