JS, если массив 2 -й

if (arr[0].constructor === Array) { /*...*/ }
Red Necked Wallaby