src/Util.js
function (arr, pred) {
    for (var i = 0; i < arr.length; i++) {
      var value = arr[i];
      if (pred(value, i, arr)) {
        return value;
      }
    }
    return null;
  }
function (arr, pred) {
    for (var i = 0; i < arr.length; i++) {
      var value = arr[i];
      if (pred(value, i, arr)) {
        return value;
      }
    }
    return null;
  }
function ( arr , pred ) { for ( var i = 0 ; i < arr . length ; i ++ ) { var value = arr [ i ] ; if ( pred ( value , i , arr ) ) { return value ; } } return null ; }
Find array element satisfying the predicate.
@param {Array} arr array
@param {Function} pred predicate accepting current value, index, original array
@return {*} found value or null
@memberOf Util
Find array element satisfying the predicate .