javascript check if a item is in a array or not code example Example: in javascript check is is an array or not Array.isArray(yourItem)