What goes in the blank?
// is it an array?
if (Array.____(v)) {
walk(v);
}
Answer: isArray
Array.isArray() is the reliable test — typeof reports 'object'.
Play Problem Solving ▸
// is it an array?
if (Array.____(v)) {
walk(v);
}
Answer: isArray