Javatpoint Logo
Javatpoint Logo

JavaScript TypedArray includes() Method

The JavaScript Array includes() method is inbuilt function in JavaScript which is used to determine whether a particular element is present in the array or not. This method returns true if the element is present in the array otherwise false.

  • The includes() method is case sensitive.

Syntax:

Parameters:

Search: The element to search for

Start: Default 0. At which position start to search.

Return value:

It returns a Boolean value, either True or False.

Browser Support:

Chrome 41
Edge 9
Firefox 40
Opera 28

Example 1

JavaScript TypedArray includes() Method

Test it Now

Output:

True

Example 2

JavaScript TypedArray includes() Method

Test it Now

Output:

False






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA