check an string exists in array javascript code example Example: not in array js !array.includes("element")