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:

Chrome41
Edge9
Firefox40
Opera28

Example 1

JavaScript TypedArray includes() Method

Test it Now

Output:

True

Example 2

JavaScript TypedArray includes() Method

Test it Now

Output:

False





Latest Courses