[1, 2, 3]. You want to find out if the number
3 is in the list. Hence, you need a boolean result.
3 in [1, 2, 3]
arr = [1, 2, 3] arr.includes(3)
This is post #5 in my quest for publishing weekly.
Photo by Sophia Baboolal on Unsplash