Javascript If Array Not Array Interview