const SIZE_OF_ARRAY = 10;
const anArray = Array.from(Array(SIZE_OF_ARRAY + 1).keys());
anArray.shift(); // Array(10) [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
const SEARCH_VALUE = SIZE_OF_ARRAY / 2; // i.e. 5
let foundIt = false;
foundIt = anArray.includes(SEARCH_VALUE); // true
foundIt = anArray.filter((x) => x === SEARCH_VALUE).length > 0; // true
foundIt = anArray.some((x) => x === SEARCH_VALUE); // true
for (let index = 0; index < anArray.length; index++) {
if (anArray[index] === SEARCH_VALUE) {
foundIt = true;
index = anArray.length; // break;
}
}