$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #265

What goes in the blank?

// flatten one level of nesting
const flat = pairs.____();

Answer: flat (also accepted: flat, flat())

flat() defaults to depth 1; pass a number or Infinity to go deeper.
Play Problem Solving ▸