My JavaScript recipes
The code is iterating through the array looking for the first occurrence of the element "element" and setting the value of "array" to that element.
Shortcut: for.loop
for (let index = 0; index < array.length; index++) {
const element = array[index];
}