Menu Close

How do I check if a variable is an array in JavaScript?

Check if a variable is an array in JavaScript

Learn here about how to find variable data is array or not

if (value instanceof Array) {
  alert('value is Array!');
} else {
  alert('Not an array');
} 
Posted in JavaScript

You can also read...