Fix the function call flattenArray->steamrollArray (#36128)

Replace the function call in the Intermediate Code Solution from flattenArray to steamrollArray which is the actual function name.
This commit is contained in:
Vishwas Navada K
2019-05-26 06:19:57 +05:30
committed by Randell Dawson
parent dd74305cde
commit 78826ea90d

View File

@ -82,7 +82,7 @@ You will definitely need recursion or another way to go beyond two level arrays
return flat.some(Array.isArray) ? steamrollArray(flat) : flat;
}
flattenArray([1, [2], [3, [[4]]]]);
steamrollArray([1, [2], [3, [[4]]]]);
![:rocket:](https://forum.freecodecamp.com/images/emoji/emoji_one/rocket.png?v=3 ":rocket:") <a href='https://repl.it/CLni/0' target='_blank' rel='nofollow'>Run Code</a>