Sobes.tech
Intern — Middle

Function to determine the equality of array elements

livecode

Task condition

Create a function that checks whether all elements of the given array have the same value. If the check passes, the function should return any element of this array.