how to check an element is array or not code example Example: js check if array Array.isArray([1, 2, 3]); // true Array.isArray('asdf'); // false