function findInArray(arr, test) {
      for (var i = 0; i < arr.length; i++) {
        if (test(arr[i])) {
          return arr[i];
        }
      }
      return undefined;
    }
Return the first item from an array for which test(arr[i]) returns true
@param {Array} arr
@param {function} test
@return {* | undefined} Returns the first matching item
                        or undefined when there is no match