src/common.js
function find(items, pred) {
  var len = items.length,
      i = -1;

  while(++i < len) {
    if (pred(items[i], i)) {
      return items[i];
    }
  }

  return null;
}
function find(items, pred) {
  var len = items.length,
      i = -1;

  while(++i < len) {
    if (pred(items[i], i)) {
      return items[i];
    }
  }

  return null;
}
function find ( items , pred ) { var len = items . length , i = - 1 ; while ( ++ i < len ) { if ( pred ( items [ i ] , i ) ) { return items [ i ] ; } } return null ; }
Find first element for which predicate is true
@param {Array} items
@param {Function} pred
@return {*}
Find first element for which predicate is true