Why is console.log not displaying anything?

Tell us what’s happening:
I tried to come up with a recursive solution but I can’t figure out why my console.log doesn’t do anything.

Your code so far

function steamrollArray(arr) {
let returner = [];

var func = function(ind) {
if(typeof (ind) != "array") {
} else {
for(var x in ind) {


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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36.

Challenge: Steamroller

Link to the challenge:

It looks like it’s in your function(ind), which never gets called.