JavaScript Array find() Method
The find() method is used to search through an array and return the first element that meets a specified condition. It executes a provided function once for each array element, until it finds a match, or finishes checking all elements. Syntax Parameters Parameters Descriptions callback (Required) A function that is executed for each element in…