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