Using the Javascript some() method to test if an element in an array has passed a test. The syntax for some is as follows:const new = original.some( function ( value);Inside our function, we can check on certain properties the value has. For example, we could use some() to check if a user is under the age of 18.
1 Comment
Sort: