1 <script> 2 var arr = [5, 4, 2, 1, 3, 6, 8, 7]; 3 console.log(Array.isArray(arr));//true 4 </script>
语法
Array.isArray(arr)
源图片
1 <script> 2 var arr = [5, 4, 2, 1, 3, 6, 8, 7]; 3 console.log(Array.isArray(arr));//true 4 </script>
语法
Array.isArray(arr)
源图片