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