Create a function that looks through an array arr and returns the first element in it that passes a "truth test".