JavaScript TypedArray indexOf() MethodThe JavaScript indexof() Method is used to find the index of the element provided as the argument to the function.
Syntax:Parameters:Value: Value to be search in the index. Start: Default 0. At which position to start the search. Return value:It returns the index of the search element. If the element cannot to be found in the array, this method returns -1. Browser Support:
Example 1JavaScript TypedArray indexOf() Method Test it NowOutput: -1 Example 2JavaScript TypedArray indexOf() Method Test it NowOutput: 4
Next TopicJavaScript TypedArray Object
|
JavaTpoint offers too many high quality services. Mail us on [email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected]
Duration: 1 week to 2 week