JavaScript TypedArray includes() MethodThe 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.
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:
Example 1JavaScript TypedArray includes() Method Test it NowOutput: True Example 2JavaScript TypedArray includes() Method Test it NowOutput: False
Next TopicJavaScript TypedArray Object
|