Steamroller - no solution works

I’m trying to do steamroller tasks but none of the prebuilt answers work. I’ve tried using Useful Programmer on youtube but it seems like this task has been updated

Your code so far

function steamrollArray(arr) {
function steamrollArray(arr) {
  while (
      return Array.isArray(dataPoint)
  ) {
    arr = arr.flat();
  return arr;


steamrollArray([1, [2], [3, [[4]]]]);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Firefox/78.0.

Challenge: Steamroller

Link to the challenge:

why do you have both those lines?

Its a copy and paste mistake, my code does’nt have that in it

what do the tests say?

// running tests Your solution should not use the




methods. // tests completed

The rest of the tests, I pass.

are you using those methods?

This is the method Array.prototype.flat()

arr = arr.flat(); is where I use that method. The thing is that the solutions for the task also use that method as well.

do you mean the guide? it seems it was last updated before the last update of the challenge, it is not always up to date

Also, no, they don’t, which one do you mean?

I just tested all 5 solutions given on the hints page and they all pass. So I’m not sure what code you are using?

I’ve got it working. It seems that even if the code is commented out, it still gets picked up