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