ES2016 Specifications included the includes() method for Array data structure. The includes() method check if an array includes a certain element, returning true or false as appropriate.

Syntax

Example

Note: The includes() method is case sensitive.

LEAVE A REPLY

Please enter your comment!
Please enter your name here