validate is object is an array javascript code example Example: js check if array Array.isArray([1, 2, 3]); // true Array.isArray('asdf'); // false