Create a function that takes an array and returns the most frequently occurring element contained within it.
findFrequent([3, 7, 3]) ➞ 3
findFrequent([null, "hello", true, null]) ➞ null
findFrequent([false, "up", "down", "left", "right", true, false]) ➞ false
N/A