How to check if a specific value or an element is present in an array in JavaScript?
Originally Published Here ๐!
To check if a specific value or an element is present in an array, you can use the includes() method on the array in JavaScript.
TL;DR
// a simple array of numbers
const nums = [100, 200, 300, 400];
// check if value "3...
melvingeorge-me.hashnode.dev2 min read