JavaScript is in array October 18, 2022 by Tarik Try this: if(blockedTile.indexOf("118") != -1) { // element found }