Answers for "how to see if there is a variable in an array"

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 "how to see if there is a variable in an array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language