js jika array 2d
if (arr[0].constructor === Array) { /*...*/ }
Red Necked Wallaby
if (arr[0].constructor === Array) { /*...*/ }