JavaScript TypedArray some() MethodThe JavaScript some() method examines the elements of the array if they are satisfied on the given condition or not. The condition is checked by the argument function. Syntax:Parameters:Array: Thet array where the some() method is called. Index: index of the current value being processed by the method. Value: The value of the current element. ThisValue: The value to be given to the method used as this value. Return value:It returns true value if the elements of the array pass the condition. If the elements not satisfy the condition then it return false. Browser Support:
Example 1JavaScript TypedArray some() Method. Test it NowOutput: True Example 2JavaScript TypedArray some() Method. Test it NowOutput: false Next TopicJavaScript TypedArray Object |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India