JavaScript Arrays includes() Method

if the element exists it returns true else it returns false

Basic Usage