Answers for "if array in array javascript"

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
2

see if array contains array javascript

const found = arr1.some(r=> arr2.indexOf(r) >= 0)
Posted by: Guest on April-30-2020

Code answers related to "if array in array javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language