Intermediate Algorithm Scripting: Steamroller code validation issue?

Link to the challenge: https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/steamroller

My code:

function steamrollArray(arr) {
  let results = []
  function flatten(item) {
    if(!Array.isArray(item)){
      results.push(item)
    } else {
      item.forEach(flatten)
    }
  }
  arr.forEach(flatten)
  return results
}

Link to camperBot’s solutions: http://forum.freecodecamp.org/t/freecodecamp-challenge-guide-steamroller/16079