I need to search for the Number 7 within an Array and return true
regardless of whether it's 7
, 47
, or 507
.
The Array in question is: [17, 23, 9, 590]
My initial attempt was to use arr.includes(7)
but this method only returns the specific number 7
. This results in a false
output because there is no exact match for 7
in the Array - only 17
.