JavaScript Arrays


JavaScript Array includes method


Hide/Show description

How to use the JavaScript Array includes method to determine whether or not an Array contains a specific item. The method only returns a True or False answer. Code Gist: https://gist.github.com/prof3ssorSt3v3/2353cfafcb2ff25e9e40275ba79d01b2 MDN site reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes