$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · medium · #109
What is the output?
console.log(Object.entries({ a: 1 }).flat());
['a', 1]
[['a', 1]]
['a']
[1]
entries gives [['a',1]] and flat lifts the pair one level.
Play Problem Solving ▸
◂ #108
all Problem Solving — predict the output questions
#110 ▸