Through the use of the .includes() method in Javascript, you can test whether or not a value exists in an array.
For a while now we've all been waiting for this to become a built in feature with Javascript and it is nice to finally see that happen without the use of external libraries or extending the prototype.
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Ещё видео!