filmov
tv
How Can I Check If An Object Is An Array in JS?

Показать описание
How Can I Check If An Object Is An Array in JS
Use the Array. isArray() Method
You can use the JavaScript Array. isArray() method to check whether an object (or a variable) is an array or not. This method returns true if the value is an array; otherwise returns false . ⬇️
Use the Array. isArray() Method
You can use the JavaScript Array. isArray() method to check whether an object (or a variable) is an array or not. This method returns true if the value is an array; otherwise returns false . ⬇️