how to know if is array javascript code example Example: in javascript check is is an array or not Array.isArray(yourItem)