Intermediate
Ruby
Q70 / 100
What does "Array#flatten" do?
Correct! Well done.
Incorrect.
The correct answer is B) Recursively flattens nested arrays into a single-level array
B
Correct Answer
Recursively flattens nested arrays into a single-level array
Explanation
flatten returns a new array with all nested arrays recursively merged into a single, flat array; an optional depth argument limits recursion.
Progress
70/100