<script> const arr = [10, 20, 30, 50, 235, 3000]; const arrNum = [1, 2, 5]; const temp = arr.filter(a => arrNum.includes(+a.toString().charAt(0))) document.write(temp) </script>