Javascript Detect Type Of Array In Javascript Interview