It’s really nice to know whether or not an item is contained within your array.
my favourite on is that we can check this array using the
includes() function .
[1, 2, 3].includes(1); // true
You like our Content? Follow us to stay up-to-date.