Answers for "test if object is array javascript"

21

if object is array javascript

Array.isArray(object);
Posted by: Guest on April-08-2020
1

js test if array

if(Array.isArray(myVarToTest)) {
	// myVatToTest is an array
} else {
	// myVarToTest is not an array
}
Posted by: Guest on September-02-2020

Code answers related to "test if object is array javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language