some() method returns a Boolean value by testing whether at least one element in the array passes the test implemented by the provided function.
Note: This method does not alter the original array.
|function(value, index, arr)||Required||Function to test for each element in an array.|
Value - Specifies a value or element in an array.
index - Specifies the index of a value or element in an array.
arr - Specifies the whole array.
|thisArg||Optional||Specifies a value against which each element in an array is tested.|
|true||If at least one element in the array passes the test implemented by the provided function.|
|false||If no elements in the array pass the test implemented by the provided function.|
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.