how to check data is array or not in javascript code example Example: if object is array javascript Array.isArray(object);