$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #182

What goes in the blank?

// is it an array?
if (Array.____(v)) {
  walk(v);
}

Answer: isArray (also accepted: isArray, isArray())

Array.isArray() is the reliable test — typeof reports 'object'.
Play Problem Solving ▸